public bool IsTransient(Exception ex) { if (_inner.IsTransient(ex)) { return(true); } return(false); }
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)); }