18 references to HedgingClientType
Microsoft.Extensions.Http.Resilience.PerformanceTests (18)
HedgingBenchmark.cs (8)
29
HedgingClientType
.NoRoutes,
30
HedgingClientType
.Weighted,
31
HedgingClientType
.Ordered,
32
HedgingClientType
.Weighted |
HedgingClientType
.ManyRoutes,
33
HedgingClientType
.Ordered |
HedgingClientType
.ManyRoutes)]
34
public
HedgingClientType
Type { get; set; }
HttpClientFactory.cs (6)
34
public static ServiceProvider InitializeServiceProvider(params
HedgingClientType
[] clientType)
57
foreach (
var
type in clientType)
65
private static void AddHedging(this IServiceCollection services,
HedgingClientType
clientType)
71
if (clientType.HasFlag(
HedgingClientType
.NoRoutes))
76
int routes = clientType.HasFlag(
HedgingClientType
.ManyRoutes) ? 50 : 2;
78
if (clientType.HasFlag(
HedgingClientType
.Ordered))
HttpResilienceBenchmark.cs (4)
36
var serviceProvider = HttpClientFactory.InitializeServiceProvider(
HedgingClientType
.Ordered,
HedgingClientType
.NoRoutes);
41
_hedgingClientNoRoutes = factory.CreateClient(nameof(
HedgingClientType
.NoRoutes));
42
_hedgingClientOrdered = factory.CreateClient(nameof(
HedgingClientType
.Ordered));