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