CQRSharp.Generators
2.2.4
See the version list below for details.
dotnet add package CQRSharp.Generators --version 2.2.4
NuGet\Install-Package CQRSharp.Generators -Version 2.2.4
<PackageReference Include="CQRSharp.Generators" Version="2.2.4" />
<PackageVersion Include="CQRSharp.Generators" Version="2.2.4" />
<PackageReference Include="CQRSharp.Generators" />
paket add CQRSharp.Generators --version 2.2.4
#r "nuget: CQRSharp.Generators, 2.2.4"
#:package CQRSharp.Generators@2.2.4
#addin nuget:?package=CQRSharp.Generators&version=2.2.4
#tool nuget:?package=CQRSharp.Generators&version=2.2.4
A set of Roslyn source code generators that allow Native AoT compatibility for the CQRSharp Library.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- CQRSharp.Shared (>= 2.2.4)
- Microsoft.CodeAnalysis.CSharp (>= 4.13.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
🚀 Release Notes for 2.2.4
🔧 Changes
- Replaced string-based detection of handlers and requests with a new attribute-driven approach.
- Improved diagnostic messages (e.g., warnings if a required attribute is missing or if no handlers are found).
- Added new file CQRSharp.Shared.Attributes.RegistrationMarkers.cs providing HandlerTypeAttribute and RequestMarkerAttribute.
- Improved the source code generators drastically - complete Native AoT support for all functionality.
- Complete elimination of reflection in the codebase contributing to AoT support and better performance on runtime.
- All registries that are responsible for mapping out various ConccurentDictionary instances on compile-time now share a very recognizable, and simple pattern, involving IDataRegistrar, Registrar and their respective interfaces and implementations. The code now utilizes ModuleInitializer to run code that binds the Registrar instances to the generated code on runtime.
- Modified all source generator code that involves itself with registering various classes with the DI container to use a unified registrar system. This ensures minimal hard-coding.
- The library now has complete support for custom context types implementations in IRequestContextFactory - earlier, this was locked to a single context type, forcing users to write their own workarounds for creation of context instances.
📂 Breaking Changes?
- The CQRSharp.Kafka project has been fully removed. No built-in Kafka publishing or consumer services remain.
- Minor API shift in RateLimiter tests and usage from RateLimitedContext to IRateLimitedContext. Now all contexts that want to utilize the rate limiter will need to inherit from the IRateLimitedContext, to implement the required parameters for the rate limiter to execute its logic.