ResilienceHttpClientBuilderExtensions Class

Definition

Extensions for IHttpClientBuilder.

C#
public static class ResilienceHttpClientBuilderExtensions
Inheritance
ResilienceHttpClientBuilderExtensions

Methods

AddResilienceHandler(IHttpClientBuilder, String, Action<ResiliencePipelineBuilder<HttpResponseMessage>,ResilienceHandlerContext>)

Adds a resilience pipeline handler that uses a named inline resilience pipeline.

AddResilienceHandler(IHttpClientBuilder, String, Action<ResiliencePipelineBuilder<HttpResponseMessage>>)

Adds a resilience pipeline handler that uses a named inline resilience pipeline.

AddStandardHedgingHandler(IHttpClientBuilder, Action<IRoutingStrategyBuilder>)

Adds a standard hedging handler that wraps the execution of the request with a standard hedging mechanism.

AddStandardHedgingHandler(IHttpClientBuilder)

Adds a standard hedging handler that wraps the execution of the request with a standard hedging mechanism.

AddStandardResilienceHandler(IHttpClientBuilder, Action<HttpStandardResilienceOptions>)

Adds a standard resilience handler that uses multiple resilience strategies with default options to send the requests and handle any transient errors.

AddStandardResilienceHandler(IHttpClientBuilder, IConfigurationSection)

Adds a standard resilience handler that uses multiple resilience strategies with default options to send the requests and handle any transient errors.

AddStandardResilienceHandler(IHttpClientBuilder)

Adds a standard resilience handler that uses multiple resilience strategies with default options to send the requests and handle any transient errors.

RemoveAllResilienceHandlers(IHttpClientBuilder)

Removes all resilience handlers registered earlier.

Applies to

Tuote Versiot
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)