Go to file
2021-02-02 12:41:38 -05:00
Demo better naming. 2021-02-02 12:22:58 -05:00
PoweredSoft.CQRS Add project files. 2021-02-01 23:31:07 -05:00
PoweredSoft.CQRS.Abstractions cqrs. 2021-02-02 12:19:59 -05:00
PoweredSoft.CQRS.AspNetCore read me and added ignore suport to controller. 2021-02-02 12:34:18 -05:00
PoweredSoft.CQRS.AspNetCore.Abstractions cqrs. 2021-02-02 12:19:59 -05:00
.gitattributes Add .gitignore and .gitattributes. 2021-02-01 23:31:05 -05:00
.gitignore Add .gitignore and .gitattributes. 2021-02-01 23:31:05 -05:00
azure-pipeline.yaml Create azure-pipeline.yaml 2021-02-01 23:34:07 -05:00
LICENSE Create LICENSE 2021-02-01 23:55:58 -05:00
PoweredSoft.CQRS.sln read me and added ignore suport to controller. 2021-02-02 12:34:18 -05:00
README.md Update README.md 2021-02-02 12:41:38 -05:00

CQRS

Our implementation of query and command responsability segregation (CQRS).

Getting Started

Install nuget package to your awesome project.

Full Version NuGet NuGet Install
PoweredSoft.CQRS.Abstractions NuGet PM> Install-Package PoweredSoft.CQRS.Abstractions
PoweredSoft.CQRS NuGet PM> Install-Package PoweredSoft.CQRS
PoweredSoft.CQRS.AspNetCore.Abstractions NuGet PM> Install-Package PoweredSoft.CQRS.AspNetCore.Abstractions
PoweredSoft.CQRS.AspNetCore NuGet PM> Install-Package PoweredSoft.CQRS.AspNetCore

Sample of startup code for aspnetcore MVC

public void ConfigureServices(IServiceCollection services)
{
    // make sure to add your queries and commands before the .AddPoweredSoftQueries and .AddPoweredSoftCommands
    AddQueries(services);
    AddCommands(services);

    // adds the non related to aspnet core features.
    services.AddPoweredSoftCQRS();
    
    services
        .AddControllers()
        .AddPoweredSoftQueries() // adds queries to aspnetcore mvc.(you can make it configurable to load balance only commands on a instance)
        .AddPoweredSoftCommands() // adds commands to aspnetcore mvc. (you can make it configurable to load balance only commands on a instance)
        .AddFluentValidation();

    services.AddSwaggerGen();
}