StandardHedgingHandlerBuilderExtensions.Configure 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Configure(IStandardHedgingHandlerBuilder, IConfigurationSection)
HttpStandardHedgingResilienceOptions为标准对冲管道配置 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Http::Resilience::IStandardHedgingHandlerBuilder ^ Configure(Microsoft::Extensions::Http::Resilience::IStandardHedgingHandlerBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder Configure (this Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member Configure : Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder
<Extension()>
Public Function Configure (builder As IStandardHedgingHandlerBuilder, section As IConfigurationSection) As IStandardHedgingHandlerBuilder
参数
- builder
- IStandardHedgingHandlerBuilder
管道生成器。
- section
- IConfigurationSection
选项将绑定到的节。
返回
builder
的值。
适用于
Configure(IStandardHedgingHandlerBuilder, Action<HttpStandardHedgingResilienceOptions,IServiceProvider>)
HttpStandardResilienceOptions为标准对冲管道配置 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Http::Resilience::IStandardHedgingHandlerBuilder ^ Configure(Microsoft::Extensions::Http::Resilience::IStandardHedgingHandlerBuilder ^ builder, Action<Microsoft::Extensions::Http::Resilience::HttpStandardHedgingResilienceOptions ^, IServiceProvider ^> ^ configure);
public static Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder Configure (this Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder builder, Action<Microsoft.Extensions.Http.Resilience.HttpStandardHedgingResilienceOptions,IServiceProvider> configure);
static member Configure : Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder * Action<Microsoft.Extensions.Http.Resilience.HttpStandardHedgingResilienceOptions, IServiceProvider> -> Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder
<Extension()>
Public Function Configure (builder As IStandardHedgingHandlerBuilder, configure As Action(Of HttpStandardHedgingResilienceOptions, IServiceProvider)) As IStandardHedgingHandlerBuilder
参数
- builder
- IStandardHedgingHandlerBuilder
管道生成器。
configure 方法。
返回
builder
的值。
适用于
Configure(IStandardHedgingHandlerBuilder, Action<HttpStandardHedgingResilienceOptions>)
HttpStandardResilienceOptions为标准对冲管道配置 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Http::Resilience::IStandardHedgingHandlerBuilder ^ Configure(Microsoft::Extensions::Http::Resilience::IStandardHedgingHandlerBuilder ^ builder, Action<Microsoft::Extensions::Http::Resilience::HttpStandardHedgingResilienceOptions ^> ^ configure);
public static Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder Configure (this Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder builder, Action<Microsoft.Extensions.Http.Resilience.HttpStandardHedgingResilienceOptions> configure);
static member Configure : Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder * Action<Microsoft.Extensions.Http.Resilience.HttpStandardHedgingResilienceOptions> -> Microsoft.Extensions.Http.Resilience.IStandardHedgingHandlerBuilder
<Extension()>
Public Function Configure (builder As IStandardHedgingHandlerBuilder, configure As Action(Of HttpStandardHedgingResilienceOptions)) As IStandardHedgingHandlerBuilder
参数
- builder
- IStandardHedgingHandlerBuilder
管道生成器。
- configure
- Action<HttpStandardHedgingResilienceOptions>
configure 方法。
返回
builder
的值。