16 references to WeightedGroupsRoutingOptions
Microsoft.Extensions.Http.Resilience (16)
Routing\Internal\WeightedGroups\WeightedGroupsRoutingOptionsValidator.cs (1)
9
internal sealed partial class WeightedGroupsRoutingOptionsValidator : IValidateOptions<
WeightedGroupsRoutingOptions
>
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategyFactory.cs (2)
13
private readonly NamedOptionsCache<
WeightedGroupsRoutingOptions
> _cache;
16
public WeightedGroupsRoutingStrategyFactory(Randomizer randomizer, NamedOptionsCache<
WeightedGroupsRoutingOptions
> cache)
Routing\RoutingStrategyBuilderExtensions.cs (12)
72
/// Configures weighted groups routing using <see cref="
WeightedGroupsRoutingOptions
"/>.
75
/// <param name="section">The section that the <see cref="
WeightedGroupsRoutingOptions
"/> will bind against.</param>
88
/// Configures weighted groups routing using <see cref="
WeightedGroupsRoutingOptions
"/>.
91
/// <param name="configure">The callback that configures <see cref="
WeightedGroupsRoutingOptions
"/>.</param>
93
public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, Action<
WeightedGroupsRoutingOptions
> configure)
102
/// Configures weighted groups routing using <see cref="
WeightedGroupsRoutingOptions
"/>.
105
/// <param name="configure">The callback that configures <see cref="
WeightedGroupsRoutingOptions
"/>.</param>
107
public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, Action<
WeightedGroupsRoutingOptions
, IServiceProvider> configure)
138
private static OptionsBuilder<
WeightedGroupsRoutingOptions
> ConfigureWeightedGroupsCore(this IRoutingStrategyBuilder builder)
142
var optionsCache = new NamedOptionsCache<
WeightedGroupsRoutingOptions
>(builder.Name, serviceProvider.GetRequiredService<IOptionsMonitor<
WeightedGroupsRoutingOptions
>>());
147
return builder.Services.AddOptionsWithValidateOnStart<
WeightedGroupsRoutingOptions
, WeightedGroupsRoutingOptionsValidator>(builder.Name);
Routing\WeightedGroupSelectionMode.cs (1)
7
/// Represents the selection mode used in <see cref="
WeightedGroupsRoutingOptions
"/>.