共用方式為


ResilienceHttpClientBuilderExtensions.AddStandardResilienceHandler 方法

定義

多載

AddStandardResilienceHandler(IHttpClientBuilder)

新增標準復原處理程式,此處理程式會使用具有預設選項的多個復原策略來傳送要求並處理任何暫時性錯誤。

AddStandardResilienceHandler(IHttpClientBuilder, IConfigurationSection)

新增標準復原處理程式,此處理程式會使用具有預設選項的多個復原策略來傳送要求並處理任何暫時性錯誤。

AddStandardResilienceHandler(IHttpClientBuilder, Action<HttpStandardResilienceOptions>)

新增標準復原處理程式,此處理程式會使用具有預設選項的多個復原策略來傳送要求並處理任何暫時性錯誤。

AddStandardResilienceHandler(IHttpClientBuilder)

來源:
ResilienceHttpClientBuilderExtensions.StandardResilience.cs

新增標準復原處理程式,此處理程式會使用具有預設選項的多個復原策略來傳送要求並處理任何暫時性錯誤。

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

參數

builder
IHttpClientBuilder

產生器實例。

傳回

builder 的值。

備註

復原管線結合了以 HTTP 特定 HttpStandardResilienceOptions 選項為基礎設定的多個策略,並具有建議的預設值。 如需此方法所設定之個別復原策略的詳細資訊,請參閱 HttpStandardResilienceOptions

適用於

AddStandardResilienceHandler(IHttpClientBuilder, IConfigurationSection)

來源:
ResilienceHttpClientBuilderExtensions.StandardResilience.cs

新增標準復原處理程式,此處理程式會使用具有預設選項的多個復原策略來傳送要求並處理任何暫時性錯誤。

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

參數

builder
IHttpClientBuilder

產生器實例。

section
IConfigurationSection

選項將系結的 區段。

傳回

builder 的值。

備註

復原管線結合了以 HTTP 特定 HttpStandardResilienceOptions 選項為基礎設定的多個策略,並具有建議的預設值。 如需此方法所設定之個別復原策略的詳細資訊,請參閱 HttpStandardResilienceOptions

適用於

AddStandardResilienceHandler(IHttpClientBuilder, Action<HttpStandardResilienceOptions>)

來源:
ResilienceHttpClientBuilderExtensions.StandardResilience.cs

新增標準復原處理程式,此處理程式會使用具有預設選項的多個復原策略來傳送要求並處理任何暫時性錯誤。

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

參數

builder
IHttpClientBuilder

產生器實例。

configure
Action<HttpStandardResilienceOptions>

設定選項的回呼。

傳回

builder 的值。

備註

復原管線結合了以 HTTP 特定 HttpStandardResilienceOptions 選項為基礎設定的多個策略,並具有建議的預設值。 如需此方法所設定之個別復原策略的詳細資訊,請參閱 HttpStandardResilienceOptions

適用於