9 instantiations of HttpStandardResilienceOptions
Microsoft.Extensions.Http.Resilience.Tests (9)
Resilience\HttpStandardResilienceOptionsCustomValidatorTests.cs (8)
24
HttpStandardResilienceOptions options =
new
();
40
HttpStandardResilienceOptions options =
new
();
51
var options = new
HttpStandardResilienceOptions
();
56
options = new
HttpStandardResilienceOptions
();
61
options = new
HttpStandardResilienceOptions
();
82
var options = new
HttpStandardResilienceOptions
();
87
options = new
HttpStandardResilienceOptions
();
91
options = new
HttpStandardResilienceOptions
();
Resilience\HttpStandardResilienceOptionsTests.cs (1)
12
private readonly HttpStandardResilienceOptions _options =
new
();
32 references to HttpStandardResilienceOptions
Microsoft.Extensions.Http.Resilience (24)
Hedging\StandardHedgingHandlerBuilderExtensions.cs (2)
44
/// Configures the <see cref="
HttpStandardResilienceOptions
"/> for the standard hedging pipeline.
58
/// Configures the <see cref="
HttpStandardResilienceOptions
"/> for the standard hedging pipeline.
Resilience\HttpStandardResiliencePipelineBuilderExtensions.cs (7)
20
/// Configures the <see cref="
HttpStandardResilienceOptions
"/> for the standard resilience pipeline.
35
_ = builder.Services.Configure<
HttpStandardResilienceOptions
>(
44
/// Configures the <see cref="
HttpStandardResilienceOptions
"/> for the standard resilience pipeline.
50
public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, Action<
HttpStandardResilienceOptions
> configure)
60
/// Configures the <see cref="
HttpStandardResilienceOptions
"/> for the standard resilience pipeline.
66
public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, Action<
HttpStandardResilienceOptions
, IServiceProvider> configure)
72
_ = builder.Services.AddOptions<
HttpStandardResilienceOptions
>(builder.PipelineName).Configure(configure);
Resilience\Internal\Validators\HttpStandardResilienceOptionsCustomValidator.cs (2)
9
internal sealed class HttpStandardResilienceOptionsCustomValidator : IValidateOptions<
HttpStandardResilienceOptions
>
13
public ValidateOptionsResult Validate(string? name,
HttpStandardResilienceOptions
options)
Resilience\Internal\Validators\HttpStandardResilienceOptionsValidator.cs (1)
9
internal sealed partial class HttpStandardResilienceOptionsValidator : IValidateOptions<
HttpStandardResilienceOptions
>
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (12)
28
/// The resilience pipeline combines multiple strategies that are configured based on HTTP-specific <see cref="
HttpStandardResilienceOptions
"/> options with recommended defaults.
29
/// See <see cref="
HttpStandardResilienceOptions
"/> for more details about the individual resilience strategies configured by this method.
46
/// The resilience pipeline combines multiple strategies that are configured based on HTTP-specific <see cref="
HttpStandardResilienceOptions
"/> options with recommended defaults.
47
/// See <see cref="
HttpStandardResilienceOptions
"/> for more details about the individual resilience strategies configured by this method.
49
public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder, Action<
HttpStandardResilienceOptions
> configure)
63
/// The resilience pipeline combines multiple strategies that are configured based on HTTP-specific <see cref="
HttpStandardResilienceOptions
"/> options with recommended defaults.
64
/// See <see cref="
HttpStandardResilienceOptions
"/> for more details about the individual resilience strategies configured by this method.
72
_ = builder.Services.AddOptionsWithValidateOnStart<
HttpStandardResilienceOptions
, HttpStandardResilienceOptionsCustomValidator>(optionsName);
73
_ = builder.Services.AddOptionsWithValidateOnStart<
HttpStandardResilienceOptions
, HttpStandardResilienceOptionsValidator>(optionsName);
77
context.EnableReloads<
HttpStandardResilienceOptions
>(optionsName);
79
var monitor = context.ServiceProvider.GetRequiredService<IOptionsMonitor<
HttpStandardResilienceOptions
>>();
80
var
options = monitor.Get(optionsName);
Microsoft.Extensions.Http.Resilience.Tests (8)
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
275
Action<
HttpStandardResilienceOptions
> configureMethod)
Resilience\HttpStandardResilienceOptionsCustomValidatorTests.cs (6)
24
HttpStandardResilienceOptions
options = new();
40
HttpStandardResilienceOptions
options = new();
51
var
options = new HttpStandardResilienceOptions();
71
public void Validate_ValidOptions_EnsureNoErrors(
HttpStandardResilienceOptions
options)
82
var
options = new HttpStandardResilienceOptions();
100
public void Validate_InvalidOptions_EnsureErrors(
HttpStandardResilienceOptions
options)
Resilience\HttpStandardResilienceOptionsTests.cs (1)
12
private readonly
HttpStandardResilienceOptions
_options = new();