Cross.CQRS
8.3.0
dotnet add package Cross.CQRS --version 8.3.0
NuGet\Install-Package Cross.CQRS -Version 8.3.0
<PackageReference Include="Cross.CQRS" Version="8.3.0" />
paket add Cross.CQRS --version 8.3.0
#r "nuget: Cross.CQRS, 8.3.0"
// Install Cross.CQRS as a Cake Addin #addin nuget:?package=Cross.CQRS&version=8.3.0 // Install Cross.CQRS as a Cake Tool #tool nuget:?package=Cross.CQRS&version=8.3.0
Cross.CQRS
Simple .NET MediatR base Query, Command, Event and Validation.
Event Queue and Validation behaviors written on C#.
Main Features:
Queries, and QueryHandlers.
Implemented base patterns to work with Queries. The Queries used just to get any data.
Commands and CommandHandlers.
Implemented base patterns to work with Commands. The Commands used to modify entities.
Events, EventHandlers, EventWriter and EventReader.
Implemented base patterns to crate Events, approach how to write a new Events from the Commands, consuming patterns and behavior to handle it. The main idea is to do some actions after the Commands have to be finished, to avoid cases when one Command call another one.
Filters.
Here included filter behavior based on RequestFilter and ResultFilter. The RequestFilter allow to filter Queries and Commands requests before their execution. The ResultFilter allow to filter Queries and Commands results after their execution.
Validation.
Here included validation behavior based on FluentValidation, that allow to validate Queries and Command before their execution.
.NET frameworks and Source Linking.
From version 1.0 repository contains .NET Standard 2.0, .NET 6, .NET 7 and .NET 8 projects. Source linking enabled and symbol package is published to nuget symbols server, making debugging easier.
Install with nuget.org:
https://www.nuget.org/packages/Cross.CQRS
Installation
Clone repository or Install Nuget Package
Install-Package Cross.CQRS
Issues and Pull Request
Contribution is welcomed. If you would like to provide a PR please add some testing.
How To's
Please use Wiki for documentation and usage examples.
Complete usage examples can be found in the test project
Note - test project is not a part of nuget package. You have to clone repository.
Roadmap:
Queries implementationCommands ImplementationValidation behavior (based on FluentValidation)Events
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
- FluentValidation (>= 11.8.1)
- FluentValidation.DependencyInjectionExtensions (>= 11.8.1)
- MediatR (>= 11.1.0)
- MediatR.Extensions.Microsoft.DependencyInjection (>= 11.1.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Scrutor (>= 4.2.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cross.CQRS:
Package | Downloads |
---|---|
Cross.CQRS.EF
Simple .NET MediatR base EF Transactional Behavior, Paginated Queries, Paginated Models. Written on C#. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
8.3.0 | 6,121 | 7/3/2024 | |
8.3.0-preview.6 | 47 | 7/3/2024 | |
8.2.2 | 106 | 5/16/2024 | |
8.2.2-preview.7 | 58 | 5/16/2024 | |
8.2.2-preview.6 | 56 | 5/16/2024 | |
8.2.2-preview.5 | 55 | 5/16/2024 | |
8.2.1 | 110 | 5/15/2024 | |
8.2.1-preview.7 | 54 | 5/15/2024 | |
8.2.0 | 1,459 | 4/16/2024 | |
8.2.0-preview.5 | 66 | 4/16/2024 | |
8.2.0-preview.4 | 66 | 4/16/2024 | |
8.2.0-preview.3 | 71 | 4/15/2024 | |
8.2.0-preview.2 | 56 | 4/15/2024 | |
8.2.0-preview.1 | 58 | 4/15/2024 | |
8.1.2 | 509 | 4/3/2024 | |
8.1.0 | 157 | 4/3/2024 | |
8.0.1 | 2,718 | 11/24/2023 | |
8.0.0 | 174 | 11/18/2023 | |
7.0.0 | 40,262 | 11/18/2023 | |
4.4.4-preview.1 | 58 | 5/15/2024 | |
1.0.1 | 315 | 11/13/2023 | |
1.0.0 | 192 | 11/2/2023 |
Added IRequestFilter with Behaviour to filter request of query or command.
Added IResultFilter with Behaviour to filter result of query or command.