/Xer.Cqrs.Extensions.SimpleInjector

SimpleInjector container integration for Xer.Cqrs

Primary LanguageC#MIT LicenseMIT

Xer.Cqrs.Extensions.SimpleInjector

Extension for SimpleInjector's Container to allow easy registration of command handlers and event handlers.

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