void IHandlerConfigurationObserver.HandlerConfigured <T>(IHandlerConfigurator <T> configurator)
        {
            var redeliverySpecification = new DelayedRedeliveryPipeSpecification <T>();
            var retrySpecification      = new RedeliveryRetryPipeSpecification <T>();

            _configure?.Invoke(retrySpecification);

            configurator.AddPipeSpecification(redeliverySpecification);
            configurator.AddPipeSpecification(retrySpecification);
        }
        public void HandlerConfigured <T>(IHandlerConfigurator <T> configurator)
            where T : class
        {
            var specification = new ConcurrencyLimitConsumePipeSpecification <T>(Limiter);

            configurator.AddPipeSpecification(specification);
        }
Пример #3
0
        void IHandlerConfigurationObserver.HandlerConfigured <T>(IHandlerConfigurator <T> configurator)
        {
            var specification = new ConsumeContextRetryPipeSpecification <ConsumeContext <T>, RetryConsumeContext <T> >(Factory, _cancellationToken);

            _configure?.Invoke(specification);

            configurator.AddPipeSpecification(specification);
        }
Пример #4
0
        void IHandlerConfigurationObserver.HandlerConfigured <T>(IHandlerConfigurator <T> configurator)
        {
            var specification = new TimeoutSpecification <T>();

            _configure?.Invoke(specification);

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

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

            configurator.AddPipeSpecification(specification);
        }