8 references to HttpRequestException
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggerTest.cs (1)
82
var exception = new
HttpRequestException
();
Microsoft.Extensions.Http.Polly.Tests (2)
PolicyHttpMessageHandlerTest.cs (2)
35
throw new
HttpRequestException
();
80
throw new
HttpRequestException
();
Microsoft.Extensions.Http.Resilience.Tests (5)
Hedging\HttpClientHedgingResiliencePredicatesTests.cs (2)
22
Assert.True(HttpClientHedgingResiliencePredicates.IsTransientHttpException(new
HttpRequestException
()));
31
Assert.True(HttpClientHedgingResiliencePredicates.IsTransient(Outcome.FromException<HttpResponseMessage>(new
HttpRequestException
())));
Polly\HttpCircuitBreakerStrategyOptionsTests.cs (1)
23
new object[] { new
HttpRequestException
(), true },
Polly\HttpClientResiliencePredicatesTests.cs (1)
20
new object[] { new
HttpRequestException
(), true },
Polly\HttpRetryStrategyOptionsTests.cs (1)
25
[new
HttpRequestException
(), null!, true],