9 instantiations of HttpRetryStrategyOptions
Microsoft.Extensions.Http.Resilience (1)
Resilience\HttpStandardResilienceOptions.cs (1)
66public HttpRetryStrategyOptions Retry { get; set; } = new HttpRetryStrategyOptions
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
RetryBenchmark.cs (1)
41.AddResilienceHandler("my-retries", builder => builder.AddRetry(new HttpRetryStrategyOptions
Microsoft.Extensions.Http.Resilience.Tests (7)
Polly\HttpRetryStrategyOptionsTests.cs (7)
32private readonly HttpRetryStrategyOptions _testClass = new(); 37var options = new HttpRetryStrategyOptions(); 84var isTransientFailure = await new HttpRetryStrategyOptions().ShouldHandle(CreateArgs(Outcome.FromResult(response))); 94var shouldHandle = await new HttpRetryStrategyOptions().ShouldHandle(args); 101var options = new HttpRetryStrategyOptions { ShouldRetryAfterHeader = true }; 129var options = new HttpRetryStrategyOptions { ShouldRetryAfterHeader = true }; 151var options = new HttpRetryStrategyOptions
9 references to HttpRetryStrategyOptions
Microsoft.Extensions.Http.Resilience (3)
Polly\HttpRetryStrategyOptions.cs (1)
22/// Initializes a new instance of the <see cref="HttpRetryStrategyOptions"/> class.
Resilience\HttpStandardResilienceOptions.cs (2)
62/// By default, this property is initialized with a unique instance of <see cref="HttpRetryStrategyOptions"/> using default properties values. 66public HttpRetryStrategyOptions Retry { get; set; } = new HttpRetryStrategyOptions
Microsoft.Extensions.Http.Resilience.Tests (6)
Polly\HttpRetryStrategyOptionsTests.cs (5)
32private readonly HttpRetryStrategyOptions _testClass = new(); 37var options = new HttpRetryStrategyOptions(); 101var options = new HttpRetryStrategyOptions { ShouldRetryAfterHeader = true }; 129var options = new HttpRetryStrategyOptions { ShouldRetryAfterHeader = true }; 151var options = new HttpRetryStrategyOptions
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
172descriptor.Strategies[2].Options.Should().BeOfType<HttpRetryStrategyOptions>();