protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator) { configurator.AddConsumer <InitialConsumer>(); configurator.AddConsumer <SubsequentConsumer>(); configurator.AddRequestClient <InitialRequest>(); configurator.AddRequestClient <SubsequentRequest>(); }
protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator) { configurator.AddConsumer <PingConsumer>(); configurator.AddRequestClient <Ping>(); configurator.ConfigureMediator((context, cfg) => { LogContext.ConfigureCurrentLogContext(LoggerFactory); ConfigureFilters(context, cfg); }); }