Beispiel #1
0
        protected void ConfigureRegistration(IMediatorRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <EasyAConsumer>();
            configurator.AddConsumer <EasyBConsumer>();

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

            configurator.AddRequestClient <Ping>();

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