10 references to AddResilienceHandler
Microsoft.Extensions.Http.Resilience (4)
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (2)
115
var outerHandler = builder.
AddResilienceHandler
(HedgingConstants.HandlerPostfix, (builder, context) =>
129
var innerBuilder = builder.
AddResilienceHandler
(
Resilience\ResilienceHttpClientBuilderExtensions.Resilience.cs (1)
42
return builder.
AddResilienceHandler
(pipelineName, (builder, _) => configure(builder));
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (1)
75
_ = builder.
AddResilienceHandler
(StandardIdentifier, (builder, context) =>
Microsoft.Extensions.Http.Resilience.Tests (6)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (6)
33
Assert.Throws<ArgumentNullException>(() => builder.
AddResilienceHandler
(null!, (_, _) => { }));
34
Assert.Throws<ArgumentException>(() => builder.
AddResilienceHandler
(string.Empty, (_, _) => { }));
36
Assert.Throws<ArgumentNullException>(() => builder.
AddResilienceHandler
("dummy", (Action<ResiliencePipelineBuilder<HttpResponseMessage>, ResilienceHandlerContext>)null!));
40
Assert.Throws<ArgumentNullException>(() => builder!.
AddResilienceHandler
("pipeline-name", (_, _) => { }));
71
builder.
AddResilienceHandler
("test", (builder, context) =>
149
.
AddResilienceHandler
("test", (_, context) =>