10 instantiations of HttpStandardHedgingResilienceOptions
Microsoft.Extensions.Http.Resilience.Tests (10)
Hedging\HttpStandardHedgingResilienceOptionsCustomValidatorTests.cs (9)
18
HttpStandardHedgingResilienceOptions options =
new
();
34
HttpStandardHedgingResilienceOptions options =
new
();
45
var options = new
HttpStandardHedgingResilienceOptions
();
50
options = new
HttpStandardHedgingResilienceOptions
();
56
options = new
HttpStandardHedgingResilienceOptions
();
61
options = new
HttpStandardHedgingResilienceOptions
();
81
var options = new
HttpStandardHedgingResilienceOptions
();
86
options = new
HttpStandardHedgingResilienceOptions
();
90
options = 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)
9
internal sealed class HttpStandardHedgingResilienceOptionsCustomValidator : IValidateOptions<
HttpStandardHedgingResilienceOptions
>
13
public ValidateOptionsResult Validate(string? name,
HttpStandardHedgingResilienceOptions
options)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsValidator.cs (1)
9
internal 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 =>
117
var
options = context.GetOptions<
HttpStandardHedgingResilienceOptions
>(optionsName);
118
context.EnableReloads<
HttpStandardHedgingResilienceOptions
>(optionsName);
133
var
options = context.GetOptions<
HttpStandardHedgingResilienceOptions
>(optionsName);
134
context.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);
49
public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, Action<
HttpStandardHedgingResilienceOptions
> configure)
63
public 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)
18
HttpStandardHedgingResilienceOptions
options = new();
34
HttpStandardHedgingResilienceOptions
options = new();
45
var
options = new HttpStandardHedgingResilienceOptions();
70
public void Validate_ValidOptions_EnsureNoErrors(
HttpStandardHedgingResilienceOptions
options)
81
var
options = new HttpStandardHedgingResilienceOptions();
99
public void Validate_InvalidOptions_EnsureErrors(
HttpStandardHedgingResilienceOptions
options)
Hedging\HttpStandardHedgingResilienceOptionsTests.cs (1)
12
private readonly
HttpStandardHedgingResilienceOptions
_options;
Hedging\StandardHedgingTests.cs (8)
66
var
options = serviceProvider.GetRequiredService<IOptionsMonitor<
HttpStandardHedgingResilienceOptions
>>().Get(Builder.Name);
81
var
options = serviceProvider.GetRequiredService<IOptionsMonitor<
HttpStandardHedgingResilienceOptions
>>().Get(Builder.Name);
103
var
options = serviceProvider.GetRequiredService<IOptionsMonitor<
HttpStandardHedgingResilienceOptions
>>().Get(Builder.Name);
112
var
options = serviceProvider.GetRequiredService<IOptionsMonitor<
HttpStandardHedgingResilienceOptions
>>().Get(Builder.Name);