RoutingStrategyBuilderExtensions.ConfigureWeightedGroups 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ConfigureWeightedGroups(IRoutingStrategyBuilder, IConfigurationSection)
使用 WeightedGroupsRoutingOptions配置加权组路由。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Http::Resilience::IRoutingStrategyBuilder ^ ConfigureWeightedGroups(Microsoft::Extensions::Http::Resilience::IRoutingStrategyBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder ConfigureWeightedGroups (this Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member ConfigureWeightedGroups : Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder
<Extension()>
Public Function ConfigureWeightedGroups (builder As IRoutingStrategyBuilder, section As IConfigurationSection) As IRoutingStrategyBuilder
参数
- builder
- IRoutingStrategyBuilder
路由生成器。
- section
- IConfigurationSection
将对其绑定的节 WeightedGroupsRoutingOptions 。
返回
builder
的值。
适用于
ConfigureWeightedGroups(IRoutingStrategyBuilder, Action<WeightedGroupsRoutingOptions,IServiceProvider>)
使用 WeightedGroupsRoutingOptions配置加权组路由。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Http::Resilience::IRoutingStrategyBuilder ^ ConfigureWeightedGroups(Microsoft::Extensions::Http::Resilience::IRoutingStrategyBuilder ^ builder, Action<Microsoft::Extensions::Http::Resilience::WeightedGroupsRoutingOptions ^, IServiceProvider ^> ^ configure);
public static Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder ConfigureWeightedGroups (this Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder builder, Action<Microsoft.Extensions.Http.Resilience.WeightedGroupsRoutingOptions,IServiceProvider> configure);
static member ConfigureWeightedGroups : Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder * Action<Microsoft.Extensions.Http.Resilience.WeightedGroupsRoutingOptions, IServiceProvider> -> Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder
<Extension()>
Public Function ConfigureWeightedGroups (builder As IRoutingStrategyBuilder, configure As Action(Of WeightedGroupsRoutingOptions, IServiceProvider)) As IRoutingStrategyBuilder
参数
- builder
- IRoutingStrategyBuilder
路由生成器。
- configure
- Action<WeightedGroupsRoutingOptions,IServiceProvider>
配置 的 WeightedGroupsRoutingOptions回调。
返回
builder
的值。
适用于
ConfigureWeightedGroups(IRoutingStrategyBuilder, Action<WeightedGroupsRoutingOptions>)
使用 WeightedGroupsRoutingOptions配置加权组路由。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Http::Resilience::IRoutingStrategyBuilder ^ ConfigureWeightedGroups(Microsoft::Extensions::Http::Resilience::IRoutingStrategyBuilder ^ builder, Action<Microsoft::Extensions::Http::Resilience::WeightedGroupsRoutingOptions ^> ^ configure);
public static Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder ConfigureWeightedGroups (this Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder builder, Action<Microsoft.Extensions.Http.Resilience.WeightedGroupsRoutingOptions> configure);
static member ConfigureWeightedGroups : Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder * Action<Microsoft.Extensions.Http.Resilience.WeightedGroupsRoutingOptions> -> Microsoft.Extensions.Http.Resilience.IRoutingStrategyBuilder
<Extension()>
Public Function ConfigureWeightedGroups (builder As IRoutingStrategyBuilder, configure As Action(Of WeightedGroupsRoutingOptions)) As IRoutingStrategyBuilder
参数
- builder
- IRoutingStrategyBuilder
路由生成器。
- configure
- Action<WeightedGroupsRoutingOptions>
配置 的 WeightedGroupsRoutingOptions回调。
返回
builder
的值。