16 references to WeightedGroupsRoutingOptions
Microsoft.Extensions.Http.Resilience (16)
Routing\Internal\WeightedGroups\WeightedGroupsRoutingOptionsValidator.cs (1)
9internal sealed partial class WeightedGroupsRoutingOptionsValidator : IValidateOptions<WeightedGroupsRoutingOptions>
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategyFactory.cs (2)
13private readonly NamedOptionsCache<WeightedGroupsRoutingOptions> _cache; 16public 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> 93public 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> 107public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, Action<WeightedGroupsRoutingOptions, IServiceProvider> configure) 138private static OptionsBuilder<WeightedGroupsRoutingOptions> ConfigureWeightedGroupsCore(this IRoutingStrategyBuilder builder) 142var optionsCache = new NamedOptionsCache<WeightedGroupsRoutingOptions>(builder.Name, serviceProvider.GetRequiredService<IOptionsMonitor<WeightedGroupsRoutingOptions>>()); 147return builder.Services.AddOptionsWithValidateOnStart<WeightedGroupsRoutingOptions, WeightedGroupsRoutingOptionsValidator>(builder.Name);
Routing\WeightedGroupSelectionMode.cs (1)
7/// Represents the selection mode used in <see cref="WeightedGroupsRoutingOptions"/>.