1 write to Builder
Microsoft.Extensions.Http.Resilience.Tests (1)
Hedging\HedgingTests.cs (1)
52Builder = createDefaultBuilder(httpClient, _requestRoutingStrategyFactory);
27 references to Builder
Microsoft.Extensions.Http.Resilience.Tests (27)
Hedging\StandardHedgingTests.cs (27)
47Builder.Configure(options => options.Hedging.MaxHedgedAttempts = -1); 55Builder.Configure(options => options.TotalRequestTimeout.Timeout = TimeSpan.FromSeconds(1)); 63Builder.Configure(o => o.Hedging.MaxHedgedAttempts = 8); 65using var serviceProvider = Builder.Services.BuildServiceProvider(); 66var options = serviceProvider.GetRequiredService<IOptionsMonitor<HttpStandardHedgingResilienceOptions>>().Get(Builder.Name); 74Builder.Configure((o, serviceProvider) => 80using var serviceProvider = Builder.Services.BuildServiceProvider(); 81var options = serviceProvider.GetRequiredService<IOptionsMonitor<HttpStandardHedgingResilienceOptions>>().Get(Builder.Name); 89Assert.Equal(ClientId, Builder.RoutingStrategyBuilder.Name); 100Builder.Configure(section); 102using var serviceProvider = Builder.Services.BuildServiceProvider(); 103var options = serviceProvider.GetRequiredService<IOptionsMonitor<HttpStandardHedgingResilienceOptions>>().Get(Builder.Name); 111using var serviceProvider = Builder.Services.BuildServiceProvider(); 112var options = serviceProvider.GetRequiredService<IOptionsMonitor<HttpStandardHedgingResilienceOptions>>().Get(Builder.Name); 137Builder.Configure(section); 141using var serviceProvider = Builder.Services.BuildServiceProvider(); 144.Get(Builder.Name); 158Builder.Configure(section)); 167Builder.Configure(section)); 173using var serviceProvider = Builder.Services.BuildServiceProvider(); 208Builder.Services.AddSingleton(provider.Object); 211Builder.SelectPipelineByAuthority(); 215Builder.SelectPipelineBy(_ => _ => customKey); 248Builder.Configure(config).Configure(options => options.Hedging.Delay = Timeout.InfiniteTimeSpan); 285Builder.Services.Configure<RequestRoutingOptions>(Builder.RoutingStrategyBuilder.Name, options => options.RoutingStrategyProvider = null); 348protected override void ConfigureHedgingOptions(Action<HttpHedgingStrategyOptions> configure) => Builder.Configure(options => configure(options.Hedging));