11 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 (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));
214
builder.
AddHttpMessageHandler
(() => new TestHandlerStub(HttpStatusCode.OK));
257
clientBuilder.
AddHttpMessageHandler
(() => new TestHandlerStub(HttpStatusCode.OK));
346
builder.
AddHttpMessageHandler
(() => new TestHandlerStub(HttpStatusCode.OK));
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
242
_builder.
AddHttpMessageHandler
(() => new TestHandlerStub((r, _) =>