示例#1
0
        protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <InitialConsumer>();
            configurator.AddConsumer <SubsequentConsumer>();

            configurator.AddRequestClient <InitialRequest>();
            configurator.AddRequestClient <SubsequentRequest>();
        }
示例#2
0
        protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <EasyAConsumer>();
            configurator.AddConsumer <EasyBConsumer>();

            configurator.ConfigureMediator((context, cfg) =>
            {
                ConfigureFilters(context, cfg);
            });
        }
示例#3
0
        protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <PingConsumer>();

            configurator.AddRequestClient <Ping>();

            configurator.ConfigureMediator((context, cfg) =>
            {
                LogContext.ConfigureCurrentLogContext(LoggerFactory);
                ConfigureFilters(context, cfg);
            });
        }
示例#4
0
 protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator)
 {
     configurator.AddConsumer <SimplerConsumer>();
 }
示例#5
0
 protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator)
 {
     configurator.AddConsumer <OrderConsumer>();
     configurator.AddSaga <OrderSaga>()
     .InMemoryRepository();
 }