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