public bool IsTransient(Exception ex)
 {
     if (_inner.IsTransient(ex))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
        bool ShouldRetry(Exception exception, out TimeSpan retryAfter)
        {
            retryAfter = TimeSpan.Zero;
            ITransientErrorDetectionStrategy detectionStrategy = this.processor.ErrorDetectionStrategy;
            ShouldRetry shouldRetry = this.config.RetryStrategy.GetShouldRetry();

            return(detectionStrategy.IsTransient(exception) && shouldRetry(this.retryAttempts, exception, out retryAfter));
        }