8 references to Name
Microsoft.Extensions.Http.Resilience (5)
Routing\RoutingStrategyBuilderExtensions.cs (5)
120
.AddOptions<RequestRoutingOptions>(builder.
Name
)
130
var optionsCache = new NamedOptionsCache<OrderedGroupsRoutingOptions>(builder.
Name
, serviceProvider.GetRequiredService<IOptionsMonitor<OrderedGroupsRoutingOptions>>());
135
return builder.Services.AddOptionsWithValidateOnStart<OrderedGroupsRoutingOptions, OrderedGroupsRoutingOptionsValidator>(builder.
Name
);
142
var optionsCache = new NamedOptionsCache<WeightedGroupsRoutingOptions>(builder.
Name
, serviceProvider.GetRequiredService<IOptionsMonitor<WeightedGroupsRoutingOptions>>());
147
return builder.Services.AddOptionsWithValidateOnStart<WeightedGroupsRoutingOptions, WeightedGroupsRoutingOptionsValidator>(builder.
Name
);
Microsoft.Extensions.Http.Resilience.Tests (3)
Hedging\StandardHedgingTests.cs (2)
89
Assert.Equal(ClientId, Builder.RoutingStrategyBuilder.
Name
);
285
Builder.Services.Configure<RequestRoutingOptions>(Builder.RoutingStrategyBuilder.
Name
, options => options.RoutingStrategyProvider = null);
Routing\RoutingStrategyTest.cs (1)
155
.Get(name ?? Builder.
Name
).RoutingStrategyProvider!;