Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 378 Bytes

File metadata and controls

12 lines (10 loc) · 378 Bytes

Xer.Cqrs.Extensions.Microsoft.DependencyInjection

Extension for IServiceCollection to allow easy registration of command handlers and event handlers.

public void ConfigureServices(IServiceCollection services)
{
    // Register all CQRS components.
    services.AddCqrs(typeof(CommandHandler).Assembly, 
                     typeof(EventHandler).Assembly);
}