11 references to AddHttpMessageHandler
Microsoft.Extensions.Http.Polly (3)
DependencyInjection\PollyHttpClientBuilderExtensions.cs (3)
43builder.AddHttpMessageHandler(() => new PolicyHttpMessageHandler(policy)); 75builder.AddHttpMessageHandler(() => new PolicyHttpMessageHandler(policySelector)); 234builder.AddHttpMessageHandler(() => new PolicyHttpMessageHandler(policy));
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
HttpClientFactory.cs (1)
51.AddHttpMessageHandler(() => new EmptyHandler())
Microsoft.Extensions.Http.Resilience.Tests (7)
Hedging\HedgingTests.cs (1)
53_ = httpClient.AddHttpMessageHandler(() => new TestHandlerStub(InnerHandlerFunction));
Resilience\HttpClientBuilderExtensionsTests.BySelector.cs (1)
129_builder.AddHttpMessageHandler(() => new TestHandlerStub(HttpStatusCode.OK));
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (4)
159_builder.AddHttpMessageHandler(() => new TestHandlerStub(HttpStatusCode.InternalServerError)); 214builder.AddHttpMessageHandler(() => new TestHandlerStub(HttpStatusCode.OK)); 257clientBuilder.AddHttpMessageHandler(() => new TestHandlerStub(HttpStatusCode.OK)); 346builder.AddHttpMessageHandler(() => new TestHandlerStub(HttpStatusCode.OK));
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
242_builder.AddHttpMessageHandler(() => new TestHandlerStub((r, _) =>