A lightweight and easy-to-use CQRS + DDD library
Xer.Cqrs is a convenience package that contains all packages needed to build a CQRS write side with DDD concepts. It groups together other lightweight XerProjects libraries:
Branch | Status |
---|---|
Master | |
Dev |
Simple CQRS library
This project composes of components for implementing the CQRS pattern (Command Handling, Event Handling) with DDD concepts (Aggregate Roots, Entities, Value Objects, Domain Events). This library was built with simplicity, modularity and pluggability in mind.
Simple handler registration (no IoC container).
IoC container registration
Microsoft.DependencyInjection
See https://github.com/XerProjects/Xer.Cqrs.Extensions.Microsoft.DependencyInjection for source.
SimpleInjector
See https://github.com/XerProjects/Xer.Cqrs.Extensions.SimpleInjector for source.
Autofac
See https://github.com/XerProjects/Xer.Cqrs.Extensions.Autofac for source.
Attribute registration
achieved by marking methods with [CommandHandler] or [EventHandler] attributes from the Xer.Cqrs.CommandStack.Extensions.Attributes and Xer.Cqrs.EventStack.Extensions.Attributes packages.
Xer.Cqrs.CommandStack.Extensions.Attributes
See https://github.com/XerProjects/Xer.Cqrs.CommandStack.Extensions.Attributes/ for source.
Xer.Cqrs.EventStack.Extensions.Attributes
See https://github.com/XerProjects/Xer.Cqrs.EventStack.Extensions.Attributes/ for source.
You can simply clone this repository, build the source, reference the dll from the project, and code away!
Xer.Cqrs is available as a Nuget package:
To install Nuget package:
dotnet add package Xer.Cqrs
dotnet restore
(Samples are in ASP.NET Core)
See https://github.com/XerProjects/Xer.Cqrs.CommandStack/blob/dev/README.md for documentation.
See https://github.com/XerProjects/Xer.Cqrs.EventStack/blob/dev/README.md for documentation.