13 writes to RetryRatio
Microsoft.Extensions.Http.Resilience.Tests (13)
Polly\HttpRetryBudgetOptionsTests.cs (1)
50RetryRatio = retryRatio,
Polly\HttpRetryResiliencePipelineBuilderExtensionsTests.cs (9)
90var options = new HttpRetryStrategyOptions { Name = "my-retry", RetryBudget = new() { RetryRatio = 2 } }; 198var pipeline = CreatePipeline(new() { RetryRatio = 0.5, MinimumThroughput = 1 }); 215var pipeline = CreatePipeline(new() { RetryRatio = 0.1, MinimumThroughput = 100 }); 226var pipeline = CreatePipeline(new() { RetryRatio = 0 }); 237var pipeline = CreatePipeline(new() { RetryRatio = 1, MinimumThroughput = 1 }, maxRetryAttempts: 1); 249var pipeline = CreatePipeline(new() { RetryRatio = 0.5, MinimumThroughput = 1 }); 268new() { RetryRatio = 0.5, MinimumThroughput = 1 }, 283var outer = CreatePipeline(new() { RetryRatio = 0 }); 310var pipeline = CreatePipeline(new() { RetryRatio = 0.5, MinimumThroughput = 4 }, maxRetryAttempts: 1);
Polly\HttpRetryStrategyOptionsExtensionsTests.cs (1)
127RetryBudget = new HttpRetryBudgetOptions { RetryRatio = 0.5 },
Resilience\HttpClientBuilderExtensionsTests.RetryBudget.cs (2)
64o.Retry.RetryBudget!.RetryRatio = 0.2; 229options.Retry.RetryBudget!.RetryRatio = 0.5;
10 references to RetryRatio
Microsoft.Extensions.Http.Resilience (4)
Polly\HttpRetryBudgetOptions.cs (3)
18/// of retries in the window is below <see cref="RetryRatio"/> multiplied by the number of requests, rounded down. 19/// At least one retry per window is always allowed, unless <see cref="RetryRatio"/> is 0, which suppresses every retry. 65/// Below this throughput, retries are not limited by the budget, unless <see cref="RetryRatio"/> is 0. This keeps
Polly\HttpRetryResiliencePipelineBuilderExtensions.cs (1)
98var retryRatio = budgetOptions.RetryRatio;
Microsoft.Extensions.Http.Resilience.Tests (6)
Polly\HttpRetryBudgetOptionsTests.cs (1)
18options.RetryRatio.Should().Be(0.1);
Polly\HttpRetryStrategyOptionsExtensionsTests.cs (2)
135Assert.Equal(new HttpRetryBudgetOptions().RetryRatio, options.RetryBudget!.RetryRatio);
Resilience\HttpClientBuilderExtensionsTests.RetryBudget.cs (3)
69options.Retry.RetryBudget!.RetryRatio.Should().Be(0.2); 95budget.RetryRatio.Should().Be(0.25); 132budget.RetryRatio.Should().Be(0.1);