Compze.TypeIdentifiers.DependencyInjection
0.1.0-alpha
dotnet add package Compze.TypeIdentifiers.DependencyInjection --version 0.1.0-alpha
NuGet\Install-Package Compze.TypeIdentifiers.DependencyInjection -Version 0.1.0-alpha
<PackageReference Include="Compze.TypeIdentifiers.DependencyInjection" Version="0.1.0-alpha" />
<PackageVersion Include="Compze.TypeIdentifiers.DependencyInjection" Version="0.1.0-alpha" />
<PackageReference Include="Compze.TypeIdentifiers.DependencyInjection" />
paket add Compze.TypeIdentifiers.DependencyInjection --version 0.1.0-alpha
#r "nuget: Compze.TypeIdentifiers.DependencyInjection, 0.1.0-alpha"
#:package Compze.TypeIdentifiers.DependencyInjection@0.1.0-alpha
#addin nuget:?package=Compze.TypeIdentifiers.DependencyInjection&version=0.1.0-alpha&prerelease
#tool nuget:?package=Compze.TypeIdentifiers.DependencyInjection&version=0.1.0-alpha&prerelease
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 fromT'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 oneITypeMap, 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
Related packages
| 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 | 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
- Compze.DependencyInjection (>= 0.8.0-alpha)
- Compze.TypeIdentifiers (>= 0.2.0-alpha)
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.1.0-alpha | 151 | 7/24/2026 |