10 instantiations of HttpStandardHedgingResilienceOptions
Microsoft.Extensions.Http.Resilience.Tests (10)
Hedging\HttpStandardHedgingResilienceOptionsCustomValidatorTests.cs (9)
18HttpStandardHedgingResilienceOptions options = new(); 34HttpStandardHedgingResilienceOptions options = new(); 45var options = new HttpStandardHedgingResilienceOptions(); 50options = new HttpStandardHedgingResilienceOptions(); 56options = new HttpStandardHedgingResilienceOptions(); 61options = new HttpStandardHedgingResilienceOptions(); 81var options = new HttpStandardHedgingResilienceOptions(); 86options = new HttpStandardHedgingResilienceOptions(); 90options = new HttpStandardHedgingResilienceOptions();
Hedging\HttpStandardHedgingResilienceOptionsTests.cs (1)
16_options = new HttpStandardHedgingResilienceOptions();
34 references to HttpStandardHedgingResilienceOptions
Microsoft.Extensions.Http.Resilience (19)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsCustomValidator.cs (2)
9internal sealed class HttpStandardHedgingResilienceOptionsCustomValidator : IValidateOptions<HttpStandardHedgingResilienceOptions> 13public ValidateOptionsResult Validate(string? name, HttpStandardHedgingResilienceOptions options)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsValidator.cs (1)
9internal sealed partial class HttpStandardHedgingResilienceOptionsValidator : IValidateOptions<HttpStandardHedgingResilienceOptions>
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (11)
39/// See <see cref="HttpStandardHedgingResilienceOptions"/> for more details about the used resilience strategies. 68/// See <see cref="HttpStandardHedgingResilienceOptions"/> for more details about the used resilience strategies. 80_ = builder.Services.AddOptionsWithValidateOnStart<HttpStandardHedgingResilienceOptions, HttpStandardHedgingResilienceOptionsValidator>(optionsName); 81_ = builder.Services.AddOptionsWithValidateOnStart<HttpStandardHedgingResilienceOptions, HttpStandardHedgingResilienceOptionsCustomValidator>(optionsName); 82_ = builder.Services.PostConfigure<HttpStandardHedgingResilienceOptions>(optionsName, options => 117var options = context.GetOptions<HttpStandardHedgingResilienceOptions>(optionsName); 118context.EnableReloads<HttpStandardHedgingResilienceOptions>(optionsName); 133var options = context.GetOptions<HttpStandardHedgingResilienceOptions>(optionsName); 134context.EnableReloads<HttpStandardHedgingResilienceOptions>(optionsName);
Hedging\StandardHedgingHandlerBuilderExtensions.cs (5)
23/// Configures the <see cref="HttpStandardHedgingResilienceOptions"/> for the standard hedging pipeline. 38_ = builder.Services.Configure<HttpStandardHedgingResilienceOptions>(builder.Name, section, o => o.ErrorOnUnknownConfiguration = true); 49public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, Action<HttpStandardHedgingResilienceOptions> configure) 63public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, Action<HttpStandardHedgingResilienceOptions, IServiceProvider> configure) 68_ = builder.Services.AddOptions<HttpStandardHedgingResilienceOptions>(builder.Name).Configure(configure);
Microsoft.Extensions.Http.Resilience.Tests (15)
Hedging\HttpStandardHedgingResilienceOptionsCustomValidatorTests.cs (6)
18HttpStandardHedgingResilienceOptions options = new(); 34HttpStandardHedgingResilienceOptions options = new(); 45var options = new HttpStandardHedgingResilienceOptions(); 70public void Validate_ValidOptions_EnsureNoErrors(HttpStandardHedgingResilienceOptions options) 81var options = new HttpStandardHedgingResilienceOptions(); 99public void Validate_InvalidOptions_EnsureErrors(HttpStandardHedgingResilienceOptions options)
Hedging\HttpStandardHedgingResilienceOptionsTests.cs (1)
12private readonly HttpStandardHedgingResilienceOptions _options;
Hedging\StandardHedgingTests.cs (8)
66var options = serviceProvider.GetRequiredService<IOptionsMonitor<HttpStandardHedgingResilienceOptions>>().Get(Builder.Name); 81var options = serviceProvider.GetRequiredService<IOptionsMonitor<HttpStandardHedgingResilienceOptions>>().Get(Builder.Name); 103var options = serviceProvider.GetRequiredService<IOptionsMonitor<HttpStandardHedgingResilienceOptions>>().Get(Builder.Name); 112var options = serviceProvider.GetRequiredService<IOptionsMonitor<HttpStandardHedgingResilienceOptions>>().Get(Builder.Name);