10 references to AddHttpMessageHandler
Microsoft.Extensions.Http.Polly (3)
DependencyInjection\PollyHttpClientBuilderExtensions.cs (3)
43
builder.
AddHttpMessageHandler
(() => new PolicyHttpMessageHandler(policy));
75
builder.
AddHttpMessageHandler
(() => new PolicyHttpMessageHandler(policySelector));
234
builder.
AddHttpMessageHandler
(() => new PolicyHttpMessageHandler(policy));
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
HttpClientFactory.cs (1)
51
.
AddHttpMessageHandler
(() => new EmptyHandler())
Microsoft.Extensions.Http.Resilience.Tests (6)
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 (3)
158
_builder.
AddHttpMessageHandler
(() => new TestHandlerStub(HttpStatusCode.InternalServerError));
213
builder.
AddHttpMessageHandler
(() => new TestHandlerStub(HttpStatusCode.OK));
256
clientBuilder.
AddHttpMessageHandler
(() => new TestHandlerStub(HttpStatusCode.OK));
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
242
_builder.
AddHttpMessageHandler
(() => new TestHandlerStub((r, _) =>