Xer.Cqrs.Extensions.Autofac

May 25, 2018 ยท View on GitHub

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);
}