public RecoverabilityExecutor(bool raiseRecoverabilityNotifications, bool immediateRetriesAvailable, bool delayedRetriesAvailable, Func<RecoverabilityConfig, ErrorContext, RecoverabilityAction> recoverabilityPolicy, RecoverabilityConfig configuration, IEventAggregator eventAggregator, DelayedRetryExecutor delayedRetryExecutor, MoveToErrorsExecutor moveToErrorsExecutor)
        {
            this.configuration = configuration;
            this.recoverabilityPolicy = recoverabilityPolicy;
            this.eventAggregator = eventAggregator;
            this.delayedRetryExecutor = delayedRetryExecutor;
            this.moveToErrorsExecutor = moveToErrorsExecutor;
            this.immediateRetriesAvailable = immediateRetriesAvailable;
            this.delayedRetriesAvailable = delayedRetriesAvailable;

            raiseNotifications = raiseRecoverabilityNotifications;
        }
Exemple #2
0
        public RecoverabilityExecutor(
            bool raiseRecoverabilityNotifications,
            bool immediateRetriesAvailable,
            bool delayedRetriesAvailable,
            Func <RecoverabilityConfig, ErrorContext, RecoverabilityAction> recoverabilityPolicy,
            RecoverabilityConfig configuration,
            DelayedRetryExecutor delayedRetryExecutor,
            MoveToErrorsExecutor moveToErrorsExecutor,
            INotificationSubscriptions <MessageToBeRetried> messageRetryNotification,
            INotificationSubscriptions <MessageFaulted> messageFaultedNotification)
        {
            this.configuration              = configuration;
            this.recoverabilityPolicy       = recoverabilityPolicy;
            this.delayedRetryExecutor       = delayedRetryExecutor;
            this.moveToErrorsExecutor       = moveToErrorsExecutor;
            this.messageRetryNotification   = messageRetryNotification;
            this.messageFaultedNotification = messageFaultedNotification;
            this.immediateRetriesAvailable  = immediateRetriesAvailable;
            this.delayedRetriesAvailable    = delayedRetriesAvailable;

            raiseNotifications = raiseRecoverabilityNotifications;
        }
Exemple #3
0
        public RecoverabilityExecutor(bool raiseRecoverabilityNotifications, bool immediateRetriesAvailable, bool delayedRetriesAvailable, Func <RecoverabilityConfig, ErrorContext, RecoverabilityAction> recoverabilityPolicy, RecoverabilityConfig configuration, IEventAggregator eventAggregator, DelayedRetryExecutor delayedRetryExecutor, MoveToErrorsExecutor moveToErrorsExecutor)
        {
            this.configuration             = configuration;
            this.recoverabilityPolicy      = recoverabilityPolicy;
            this.eventAggregator           = eventAggregator;
            this.delayedRetryExecutor      = delayedRetryExecutor;
            this.moveToErrorsExecutor      = moveToErrorsExecutor;
            this.immediateRetriesAvailable = immediateRetriesAvailable;
            this.delayedRetriesAvailable   = delayedRetriesAvailable;

            raiseNotifications = raiseRecoverabilityNotifications;
        }