예제 #1
0
 public KlinkedCqrsBus(IServiceProvider provider, CqrsOptions options)
 {
     _queryHandlerFactory   = new QueryHandlerFactory(provider, options.QueryDecorators);
     _commandHandlerFactory = new CommandHandlerFactory(provider, options.CommandDecorators);
     _eventHandlerFactory   = new EventHandlerFactory(provider, options.EventDecorators);
 }
 public static IServiceCollection AddKlinkedCqrs(this IServiceCollection services, CqrsOptions options)
 {
     services.AddCqrs(options);
     return(services);
 }