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