Skip to content

denis-peshkov/Cross.CQRS

Repository files navigation

Nuget Documentation

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 implementation
  • Commands Implementation
  • Validation behavior (based on FluentValidation)
  • Events

About

Simple .NET MediatR base Query, Command, Event. Event Queue and Validation behaviors. Written on C#. Published on Nuget at https://www.nuget.org/packages/Cross.CQRS

Resources

License

Stars

Watchers

Forks