Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PatronusR

NuGet

Simple patronusr implementation in .NET

Supports request/response, commands, queries via C# generic variance.

Installing PatronusR

You should install PatronusR with NuGet:

Install-Package PatronusR

Or via the .NET Core command line interface:

dotnet add package PatronusR

Registering with IServiceCollection

PatronusR supports Microsoft.Extensions.DependencyInjection.Abstractions directly. To register various PatronusR services and handlers:

services.AddPatronusR(cfg => cfg.RegisterServicesFromAssemblyContaining<Startup>());

or with an assembly:

services.AddPatronusR(cfg => cfg.RegisterServicesFromAssembly(typeof(Startup).Assembly));

This registers:

  • IPatronusR as Scoped
  • ISender as Scoped

To register behaviors, stream behaviors, pre/post processors:

services.AddPatronusR(cfg => {
    cfg.RegisterServicesFromAssembly(typeof(Startup).Assembly);
    });

About

Simple patronusr implementation in .NET

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages