示例#1
0
        public void MessageConfigured <TMessage>(IConsumePipeConfigurator configurator)
            where TMessage : class
        {
            var specification = new InMemoryOutboxSpecification <TMessage>();

            configurator.AddPipeSpecification(specification);
        }
示例#2
0
        void ISagaConfigurationObserver.SagaMessageConfigured <T, TMessage>(ISagaMessageConfigurator <T, TMessage> configurator)
        {
            var specification = new InMemoryOutboxSpecification <TMessage>();

            _configure?.Invoke(specification);

            _configurator.Message <TMessage>(x => x.AddPipeSpecification(specification));
        }
示例#3
0
        public override void BatchConsumerConfigured <TConsumer, TMessage>(IConsumerMessageConfigurator <TConsumer, Batch <TMessage> > configurator)
        {
            var specification = new InMemoryOutboxSpecification <Batch <TMessage> >();

            _configure?.Invoke(specification);

            configurator.Message(m => m.AddPipeSpecification(specification));
        }
        void IHandlerConfigurationObserver.HandlerConfigured <T>(IHandlerConfigurator <T> configurator)
        {
            var specification = new InMemoryOutboxSpecification <T>();

            _configure?.Invoke(specification);

            configurator.AddPipeSpecification(specification);
        }
        void IConsumerConfigurationObserver.ConsumerMessageConfigured <T, TMessage>(IConsumerMessageConfigurator <T, TMessage> configurator)
        {
            var specification = new InMemoryOutboxSpecification <TMessage>();

            _configurator.Message <TMessage>(x => x.AddPipeSpecification(specification));
        }