public static ICqrsOptionsBuilder AddLogging(this ICqrsOptionsBuilder builder) { return(builder .UseQueryDecorator(typeof(LoggingQueryHandlerDecorator <,>)) .UseCommandDecorator(typeof(LoggingCommandHandlerDecorator <>)) .UseEventDecorator(typeof(LoggingEventHandlerDecorator <>))); }
public ICqrsBusBuilder UseQueryDecorator(Type decoratorType) { _optionsBuilder.UseQueryDecorator(decoratorType); return(this); }