ModernMediator.Generators
2.2.1
dotnet add package ModernMediator.Generators --version 2.2.1
NuGet\Install-Package ModernMediator.Generators -Version 2.2.1
<PackageReference Include="ModernMediator.Generators" Version="2.2.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="ModernMediator.Generators" Version="2.2.1" />
<PackageReference Include="ModernMediator.Generators"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add ModernMediator.Generators --version 2.2.1
#r "nuget: ModernMediator.Generators, 2.2.1"
#:package ModernMediator.Generators@2.2.1
#addin nuget:?package=ModernMediator.Generators&version=2.2.1
#tool nuget:?package=ModernMediator.Generators&version=2.2.1
ModernMediator.Generators
Source generators for ModernMediator. Eliminates runtime reflection on the request-dispatch path and enables Native AOT compilation.
This package is shipped transitively via the core ModernMediator package's project reference. You normally do not install this package directly. Installing ModernMediator includes these generators automatically.
If you are building a project that explicitly opts into the source-generated dispatch path (AddModernMediatorGenerated() rather than AddModernMediator() with assembly scanning), you may want this package referenced explicitly to ensure the generators are active during compilation. In most cases, the transitive reference from the core package is sufficient.
Diagnostics
The generators emit compile-time diagnostics with the prefix MM (for example, MM001 flags duplicate handler registrations). MM009 detects dispatcher overload mismatch at compile time, paralleling the runtime [MM201] prefix surfaced by the core dispatcher when the same condition slips past the analyzer (for example, across precompiled assembly boundaries). See the core ModernMediator README for the full diagnostic catalog.
License
MIT. See LICENSE in the repository root.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.