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