Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 382 Bytes

README.md

File metadata and controls

11 lines (10 loc) · 382 Bytes

Xer.Cqrs.Extensions.Autofac

Extension for Autofac's ContainerBuilder to allow easy registration of command handlers and event handlers.

public void ConfigureServices(Autofac.ContainerBuilder container)
{
    // Register all CQRS components.
    container.RegisterCqrs(typeof(CommandHandler).Assembly, 
                           typeof(EventHandler).Assembly);
}