Esempio n. 1
0
        protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <InitialConsumer>();
            configurator.AddConsumer <SubsequentConsumer>();

            configurator.AddRequestClient <InitialRequest>();
            configurator.AddRequestClient <SubsequentRequest>();
        }
Esempio n. 2
0
        protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <PingConsumer>();

            configurator.AddRequestClient <Ping>();

            configurator.ConfigureMediator((context, cfg) =>
            {
                LogContext.ConfigureCurrentLogContext(LoggerFactory);
                ConfigureFilters(context, cfg);
            });
        }