Compze.TypeIdentifiers.DependencyInjection 0.1.0-alpha

This is a prerelease version of Compze.TypeIdentifiers.DependencyInjection.
dotnet add package Compze.TypeIdentifiers.DependencyInjection --version 0.1.0-alpha
                    
NuGet\Install-Package Compze.TypeIdentifiers.DependencyInjection -Version 0.1.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.1.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.1.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.1.0-alpha
                    
#r "nuget: Compze.TypeIdentifiers.DependencyInjection, 0.1.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.1.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.1.0-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Compze.TypeIdentifiers.DependencyInjection&version=0.1.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 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 (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