Deli z drugimi prek


ResilienceHttpClientBuilderExtensions.AddStandardResilienceHandler Method

Definition

Overloads

AddStandardResilienceHandler(IHttpClientBuilder)

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, 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)

Source:
ResilienceHttpClientBuilderExtensions.StandardResilience.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Http::Resilience::IHttpStandardResiliencePipelineBuilder ^ AddStandardResilienceHandler(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder);
public static Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder);
static member AddStandardResilienceHandler : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder -> Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder
<Extension()>
Public Function AddStandardResilienceHandler (builder As IHttpClientBuilder) As IHttpStandardResiliencePipelineBuilder

Parameters

builder
IHttpClientBuilder

The builder instance.

Returns

The value of builder.

Remarks

The resilience pipeline combines multiple strategies that are configured based on HTTP-specific HttpStandardResilienceOptions options with recommended defaults. See HttpStandardResilienceOptions for more details about the individual resilience strategies configured by this method.

Applies to

AddStandardResilienceHandler(IHttpClientBuilder, IConfigurationSection)

Source:
ResilienceHttpClientBuilderExtensions.StandardResilience.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Http::Resilience::IHttpStandardResiliencePipelineBuilder ^ AddStandardResilienceHandler(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddStandardResilienceHandler : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder
<Extension()>
Public Function AddStandardResilienceHandler (builder As IHttpClientBuilder, section As IConfigurationSection) As IHttpStandardResiliencePipelineBuilder

Parameters

builder
IHttpClientBuilder

The builder instance.

section
IConfigurationSection

The section that the options will bind against.

Returns

The value of builder.

Remarks

The resilience pipeline combines multiple strategies that are configured based on HTTP-specific HttpStandardResilienceOptions options with recommended defaults. See HttpStandardResilienceOptions for more details about the individual resilience strategies configured by this method.

Applies to

AddStandardResilienceHandler(IHttpClientBuilder, Action<HttpStandardResilienceOptions>)

Source:
ResilienceHttpClientBuilderExtensions.StandardResilience.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Http::Resilience::IHttpStandardResiliencePipelineBuilder ^ AddStandardResilienceHandler(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Action<Microsoft::Extensions::Http::Resilience::HttpStandardResilienceOptions ^> ^ configure);
public static Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Action<Microsoft.Extensions.Http.Resilience.HttpStandardResilienceOptions> configure);
static member AddStandardResilienceHandler : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Action<Microsoft.Extensions.Http.Resilience.HttpStandardResilienceOptions> -> Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder
<Extension()>
Public Function AddStandardResilienceHandler (builder As IHttpClientBuilder, configure As Action(Of HttpStandardResilienceOptions)) As IHttpStandardResiliencePipelineBuilder

Parameters

builder
IHttpClientBuilder

The builder instance.

configure
Action<HttpStandardResilienceOptions>

The callback that configures the options.

Returns

The value of builder.

Remarks

The resilience pipeline combines multiple strategies that are configured based on HTTP-specific HttpStandardResilienceOptions options with recommended defaults. See HttpStandardResilienceOptions for more details about the individual resilience strategies configured by this method.

Applies to