Esempio n. 1
0
 private ServiceBusRetryWrapperBuilder()
 {
     _execution          = async() => { };
     _onException        = async _ => { };
     _onDeadLettering    = async _ => { };
     _onScheduling       = async(_, __) => { };
     _exceptionPredicate = _ => true;
     _interval           = ServiceBusRetryConsts.DEFAULT_INTERVAL;
 }
 public ServiceBusRetryWrapper(Message message,
                               IMessageReceiver messageReceiver,
                               IMessageSender sender,
                               string lockToken,
                               int retryCount,
                               int interval,
                               Execution execution,
                               OnException onException,
                               OnScheduling onScheduling,
                               OnDeadLettering onDeadLettering,
                               Func <Exception, bool> exceptionPredicate)
 {
     Message            = message;
     MessageReceiver    = messageReceiver;
     Sender             = sender;
     LockToken          = lockToken;
     RetryCount         = retryCount;
     Interval           = interval;
     Execution          = execution;
     OnException        = onException;
     OnScheduling       = onScheduling;
     OnDeadLettering    = onDeadLettering;
     ExceptionPredicate = exceptionPredicate;
 }
Esempio n. 3
0
 public ServiceBusRetryWrapperBuilder With(OnDeadLettering onDeadLettering)
 {
     _onDeadLettering = onDeadLettering;
     return(this);
 }