Skip to content

XerProjects/Xer.Cqrs.Extensions.SimpleInjector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6f639e2 · May 25, 2018

History

22 Commits
May 8, 2018
Apr 9, 2018
Apr 9, 2018
Apr 9, 2018
May 8, 2018
May 25, 2018
Feb 24, 2018
Apr 27, 2018
Apr 27, 2018
Apr 9, 2018
Apr 9, 2018

Repository files navigation

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