TCJ.DependencyInjection
0.1.0-preview.4
dotnet add package TCJ.DependencyInjection --version 0.1.0-preview.4
NuGet\Install-Package TCJ.DependencyInjection -Version 0.1.0-preview.4
<PackageReference Include="TCJ.DependencyInjection" Version="0.1.0-preview.4" />
<PackageVersion Include="TCJ.DependencyInjection" Version="0.1.0-preview.4" />
<PackageReference Include="TCJ.DependencyInjection" />
paket add TCJ.DependencyInjection --version 0.1.0-preview.4
#r "nuget: TCJ.DependencyInjection, 0.1.0-preview.4"
#:package TCJ.DependencyInjection@0.1.0-preview.4
#addin nuget:?package=TCJ.DependencyInjection&version=0.1.0-preview.4&prerelease
#tool nuget:?package=TCJ.DependencyInjection&version=0.1.0-preview.4&prerelease
TCJ.DependencyInjection
TCJ.DependencyInjection adds TCJ service registration and sequential domain-event dispatching on top of Microsoft.Extensions.DependencyInjection. It supports both an explicit reflection-free bootstrap for Native AOT-sensitive applications and opt-in convention scanning for normal JIT applications.
Install
dotnet add package TCJ.DependencyInjection --prerelease
TCJ Framework is currently pre-1.0. Pin the exact preview version used by your application when reproducibility matters.
Highlights
- Explicit
AddTcjDependencyInjection()bootstrap without assembly scanning. - Closed domain-event registration with
AddTcjDomainEvent<TEvent>(). - Sequential domain-event dispatching through standard Microsoft DI lifetimes.
- Optional convention scanning for non-trimmed applications.
- Health-check registration support used by the TCJ health contract.
- Full Native AOT/trimming support on the explicit reflection-free path.
Example
using TCJ.DependencyInjection.Extensions;
services.AddTcjDependencyInjection();
services.AddTcjDomainEvent<OrderPlaced>();
services.AddScoped<IOrderService, OrderService>();
services.AddTransient<IDomainEventHandler<OrderPlaced>, OrderPlacedHandler>();
For convention-based discovery in a normal JIT application:
services.AddTcjDependencyInjection(typeof(Program).Assembly);
Dependencies
This package builds on TCJ.Core and Microsoft dependency-injection abstractions.
Documentation
- TCJ.DependencyInjection package documentation
- Domain events guide
- Native AOT and trimming guide
- Validated examples
- Repository
- Issues
License
TCJ Framework is licensed under GNU LGPL v3.0 only (LGPL-3.0-only). See the repository license for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- TCJ.Core (>= 0.1.0-preview.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.4 | 2,462 | 9/1/2026 |
| 0.1.0-preview.3 | 1,803 | 8/16/2026 |
| 0.1.0-preview.2 | 214 | 8/15/2026 |
| 0.1.0-preview.1 | 1,644 | 8/2/2026 |
TCJ Framework preview release. Public APIs may change before 1.0.0. Changelog: https://github.com/Amir-ESH/TCJ.Framework/blob/main/CHANGELOG.md