TCJ.DependencyInjection 0.1.0-preview.4

This is a prerelease version of TCJ.DependencyInjection.
dotnet add package TCJ.DependencyInjection --version 0.1.0-preview.4
                    
NuGet\Install-Package TCJ.DependencyInjection -Version 0.1.0-preview.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TCJ.DependencyInjection" Version="0.1.0-preview.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TCJ.DependencyInjection" Version="0.1.0-preview.4" />
                    
Directory.Packages.props
<PackageReference Include="TCJ.DependencyInjection" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TCJ.DependencyInjection --version 0.1.0-preview.4
                    
#r "nuget: TCJ.DependencyInjection, 0.1.0-preview.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TCJ.DependencyInjection@0.1.0-preview.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TCJ.DependencyInjection&version=0.1.0-preview.4&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TCJ.DependencyInjection&version=0.1.0-preview.4&prerelease
                    
Install as a Cake Tool

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

License

TCJ Framework is licensed under GNU LGPL v3.0 only (LGPL-3.0-only). See the repository license for details.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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