예제 #1
0
        void ISagaConfigurationObserver.SagaMessageConfigured <T, TMessage>(ISagaMessageConfigurator <T, TMessage> configurator)
        {
            var specification = new TimeoutSpecification <TMessage>();

            _configure?.Invoke(specification);

            _configurator.Message <TMessage>(x => x.AddPipeSpecification(specification));
        }
예제 #2
0
        public override void BatchConsumerConfigured <TConsumer, TMessage>(IConsumerMessageConfigurator <TConsumer, Batch <TMessage> > configurator)
        {
            var specification = new TimeoutSpecification <Batch <TMessage> >();

            _configure?.Invoke(specification);

            configurator.Message(m => m.AddPipeSpecification(specification));
        }
예제 #3
0
        void IHandlerConfigurationObserver.HandlerConfigured <T>(IHandlerConfigurator <T> configurator)
        {
            var specification = new TimeoutSpecification <T>();

            _configure?.Invoke(specification);

            configurator.AddPipeSpecification(specification);
        }
예제 #4
0
        public void MessageConfigured <TMessage>(IConsumePipeConfigurator configurator)
            where TMessage : class
        {
            var specification = new TimeoutSpecification <TMessage>();

            _configure?.Invoke(specification);

            configurator.AddPipeSpecification(specification);
        }