Compze.TypeIdentifiers.DependencyInjection 0.2.0-alpha

This is a prerelease version of Compze.TypeIdentifiers.DependencyInjection.
dotnet add package Compze.TypeIdentifiers.DependencyInjection --version 0.2.0-alpha
                    
NuGet\Install-Package Compze.TypeIdentifiers.DependencyInjection -Version 0.2.0-alpha
                    
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="Compze.TypeIdentifiers.DependencyInjection" Version="0.2.0-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Compze.TypeIdentifiers.DependencyInjection" Version="0.2.0-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Compze.TypeIdentifiers.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 Compze.TypeIdentifiers.DependencyInjection --version 0.2.0-alpha
                    
#r "nuget: Compze.TypeIdentifiers.DependencyInjection, 0.2.0-alpha"
                    
#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 Compze.TypeIdentifiers.DependencyInjection@0.2.0-alpha
                    
#: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=Compze.TypeIdentifiers.DependencyInjection&version=0.2.0-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Compze.TypeIdentifiers.DependencyInjection&version=0.2.0-alpha&prerelease
                    
Install as a Cake Tool

Compze.TypeIdentifiers.DependencyInjection

Dependency-injection composition for Compze.TypeIdentifiers: each component declares which assemblies' type mappings it requires, and the container composes one immutable ITypeMap from every declaration.

What is Compze?

Compze is a .NET framework for building expressive domains through Teventive programming and Typermedia APIs. Learn more

What's in this package?

  • RequireMappedTypesFromAssemblyContaining<T>() — a component states that it persists or transmits types from T's assembly, and that those types must therefore be mapped to the GUIDs the assembly declares.
  • RequireStableTypeNamesFromAssemblyContaining<T>() — the same declaration for an assembly whose type names are persisted unchanged instead of being replaced by GUIDs.
  • RegisterTypeMap() — installs the container's one ITypeMap, composed from the whole finished requirement set when the container is built, so declaration order never decides what a type is persisted as.

"Which assemblies must be mapped" is a dependency like any other, and belongs to the component that has it. Threading a mutable mapper through composition roots put the knowledge in the wrong place: every composition root had to know, and repeat, what its components needed.

Keeping this in its own package leaves the type-identity core dependency-free — a domain's contracts assembly can identify its types without taking a dependency on a container.

Installation

dotnet add package Compze.TypeIdentifiers.DependencyInjection
Package Description
Compze.TypeIdentifiers The dependency-free type-identity core these declarations compose
Compze.DependencyInjection The container the declarations are made against

License

Apache-2.0

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Compze.TypeIdentifiers.DependencyInjection:

Package Downloads
Compze.Tessaging

Messaging infrastructure for the Compze framework including command, query, and event handling.

Compze.Teventive.TeventStore.Typermedia

Typermedia API bridge for the Compze event store — exposes event store operations as Typermedia tueries and tommands.

Compze.Teventive.TeventStore

Event store implementation for Compze event sourcing.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0-alpha 197 11/14/2026
0.1.0-alpha 287 7/24/2026

- **Targets .NET 11 (`net11.0`) instead of .NET 10, and is compiled with runtime async:** the runtime, instead of state machines the compiler generates, suspends and resumes its async methods, so live stack traces show the real call chain. An application that uses this version must target .NET 11.
- **Requires newer minor versions of other Compze packages:** Compze.DependencyInjection 0.9.0-alpha (was 0.8.0-alpha), Compze.TypeIdentifiers 0.3.0-alpha (was 0.2.0-alpha). Upgrading to this version upgrades each package listed here too, so their changelogs apply to this upgrade as well.