Archityped.Mediation.SourceGenerator
1.0.0-alpha.1
dotnet add package Archityped.Mediation.SourceGenerator --version 1.0.0-alpha.1
NuGet\Install-Package Archityped.Mediation.SourceGenerator -Version 1.0.0-alpha.1
<PackageReference Include="Archityped.Mediation.SourceGenerator" Version="1.0.0-alpha.1" />
<PackageVersion Include="Archityped.Mediation.SourceGenerator" Version="1.0.0-alpha.1" />
<PackageReference Include="Archityped.Mediation.SourceGenerator" />
paket add Archityped.Mediation.SourceGenerator --version 1.0.0-alpha.1
#r "nuget: Archityped.Mediation.SourceGenerator, 1.0.0-alpha.1"
#:package Archityped.Mediation.SourceGenerator@1.0.0-alpha.1
#addin nuget:?package=Archityped.Mediation.SourceGenerator&version=1.0.0-alpha.1&prerelease
#tool nuget:?package=Archityped.Mediation.SourceGenerator&version=1.0.0-alpha.1&prerelease
Archityped.Mediation.SourceGenerator
Archityped.Mediation.SourceGenerator is a Roslyn-based source generator for the Archityped.Mediation ecosystem. It eliminates the need for runtime reflection when wiring up requests, handlers, and middleware, enabling high-performance resolution and NativeAOT compatibility.
This package is typically referenced alongside Archityped.Mediation to provide compile-time optimizations.
Installation
IMPORTANT
This package is not intended for direct installation. It is consumed automatically when you reference Archityped.Mediation.Abstractions.You should not add a direct dependency on this package in your projects.
Key Features
Type Inference Helpers
Generates extension methods so you can callSendAsync(request)orStreamAsync(request)without explicitly specifying generic type parameters.Performance Optimized
Removes runtime reflection when dispatching requests and streams, resulting in faster execution and safer NativeAOT scenarios.
Usage
When included in your project, the source generator runs at compile time and augments the mediator with generated resolvers. No additional configuration is required.
Example registration with explicit handlers:
services.AddMediator(cfg => cfg
.AddRequestHandler<CreateUserHandler>()
.AddEventHandler<UserRegisteredHandler>());
Documentation
For full documentation, examples, and guidance, visit Archityped.Mediation.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 4.14.0)
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 |
|---|