Поделиться через


RoutingStrategyBuilderExtensions.ConfigureWeightedGroups Метод

Определение

Перегрузки

ConfigureWeightedGroups(IRoutingStrategyBuilder, IConfigurationSection)

Настраивает маршрутизацию взвешеных групп с помощью WeightedGroupsRoutingOptions.

ConfigureWeightedGroups(IRoutingStrategyBuilder, Action<WeightedGroupsRoutingOptions,IServiceProvider>)

Настраивает маршрутизацию взвешеных групп с помощью WeightedGroupsRoutingOptions.

ConfigureWeightedGroups(IRoutingStrategyBuilder, Action<WeightedGroupsRoutingOptions>)

Настраивает маршрутизацию взвешеных групп с помощью WeightedGroupsRoutingOptions.

ConfigureWeightedGroups(IRoutingStrategyBuilder, IConfigurationSection)

Исходный код:
RoutingStrategyBuilderExtensions.cs

Настраивает маршрутизацию взвешеных групп с помощью 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>)

Исходный код:
RoutingStrategyBuilderExtensions.cs

Настраивает маршрутизацию взвешеных групп с помощью 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>)

Исходный код:
RoutingStrategyBuilderExtensions.cs

Настраивает маршрутизацию взвешеных групп с помощью 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.

Применяется к