Archityped.Mediation.SourceGenerator 1.0.0-alpha.1

This is a prerelease version of Archityped.Mediation.SourceGenerator.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Archityped.Mediation.SourceGenerator --version 1.0.0-alpha.1
                    
NuGet\Install-Package Archityped.Mediation.SourceGenerator -Version 1.0.0-alpha.1
                    
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="Archityped.Mediation.SourceGenerator" Version="1.0.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Archityped.Mediation.SourceGenerator" Version="1.0.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="Archityped.Mediation.SourceGenerator" />
                    
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 Archityped.Mediation.SourceGenerator --version 1.0.0-alpha.1
                    
#r "nuget: Archityped.Mediation.SourceGenerator, 1.0.0-alpha.1"
                    
#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 Archityped.Mediation.SourceGenerator@1.0.0-alpha.1
                    
#: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=Archityped.Mediation.SourceGenerator&version=1.0.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Archityped.Mediation.SourceGenerator&version=1.0.0-alpha.1&prerelease
                    
Install as a Cake Tool

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 call SendAsync(request) or StreamAsync(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.

There are no supported framework assets in this 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