Skip to content

iamhasibulhasan/PatronusR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages