/// <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; }
/// <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); }
public static ErdenConfig AddEventSourcing(this ErdenConfig config) { config.AddToRegistration(typeof(IEventHandler <>), typeof(IEventHandlerRegistrator), "Handle"); return(config); }