예제 #1
0
 /// <summary>
 /// Add DAL
 /// </summary>
 public static ErdenConfig AddDal(this ErdenConfig config)
 {
     config.AddToRegistration(typeof(IChangeHandler<>), typeof(IChangeHandlerRegistrator), "Execute");
     config.AddToRegistration(typeof(IFetchHandler<,>), typeof(IFetchHandlerRegistrator), "Execute");
     return config;
 }
예제 #2
0
 /// <summary>
 /// Add CQRS
 /// </summary>
 public static ErdenConfig AddCqrs(this ErdenConfig config)
 {
     config.AddToRegistration(typeof(ICommandHandler <>), typeof(ICommandHandlerRegistrator), "Execute");
     config.AddToRegistration(typeof(IQueryHandler <,>), typeof(IQueryHandlerRegistrator), "Execute");
     return(config);
 }
예제 #3
0
 public static ErdenConfig AddEventSourcing(this ErdenConfig config)
 {
     config.AddToRegistration(typeof(IEventHandler <>), typeof(IEventHandlerRegistrator), "Handle");
     return(config);
 }