public void ResponseCodeIsNotConsideredTransient(HttpStatusCode code) { var strategy = new HttpStatusCodeErrorDetectionStrategy(); Assert.False(strategy.IsTransient(new HttpRequestWithStatusException { StatusCode = code })); }
public void BadExceptionIsNotConsideredTransient() { var strategy = new HttpStatusCodeErrorDetectionStrategy(); Assert.False(strategy.IsTransient(new InvalidOperationException())); }
public RetryHandler(HttpMessageHandler innerHandler) : base(innerHandler) { this.errorDetectionStrategy = new HttpStatusCodeErrorDetectionStrategy(); }