26 instantiations of HttpRetryBudgetOptions
Microsoft.Extensions.Http.Resilience (2)
Polly\HttpRetryResiliencePipelineBuilderExtensions.cs (1)
45
return AddBudgetedRetry(builder, options, options.RetryBudget ?? new
HttpRetryBudgetOptions
());
Polly\HttpRetryStrategyOptionsExtensions.cs (1)
41
options.RetryBudget = new
HttpRetryBudgetOptions
();
Microsoft.Extensions.Http.Resilience.Tests (24)
Polly\HttpRetryBudgetOptionsTests.cs (3)
16
var options = new
HttpRetryBudgetOptions
();
32
new HttpRetryBudgetOptionsValidator().Validate(null, new
HttpRetryBudgetOptions
()).Succeeded.Should().BeTrue();
48
var options = new
HttpRetryBudgetOptions
Polly\HttpRetryResiliencePipelineBuilderExtensionsTests.cs (16)
46
retry.RetryBudget.Should().BeEquivalentTo(new
HttpRetryBudgetOptions
());
65
var options = new HttpRetryStrategyOptions { Name = "my-retry", RetryBudget =
new
() };
79
var options = new HttpRetryStrategyOptions { RetryBudget =
new
() };
90
var options = new HttpRetryStrategyOptions { Name = "my-retry", RetryBudget =
new
() { RetryRatio = 2 } };
118
options.RetryBudget =
new
();
155
RetryBudget =
new
(),
189
var copy = HttpRetryResiliencePipelineBuilderExtensions.CreateBudgetedCopy(options, new
HttpRetryBudgetOptions
());
198
var pipeline = CreatePipeline(
new
() { RetryRatio = 0.5, MinimumThroughput = 1 });
215
var pipeline = CreatePipeline(
new
() { RetryRatio = 0.1, MinimumThroughput = 100 });
226
var pipeline = CreatePipeline(
new
() { RetryRatio = 0 });
237
var pipeline = CreatePipeline(
new
() { RetryRatio = 1, MinimumThroughput = 1 }, maxRetryAttempts: 1);
249
var pipeline = CreatePipeline(
new
() { RetryRatio = 0.5, MinimumThroughput = 1 });
268
new
() { RetryRatio = 0.5, MinimumThroughput = 1 },
283
var outer = CreatePipeline(
new
() { RetryRatio = 0 });
289
RetryBudget =
new
() { MinimumThroughput = 1000 },
310
var pipeline = CreatePipeline(
new
() { RetryRatio = 0.5, MinimumThroughput = 4 }, maxRetryAttempts: 1);
Polly\HttpRetryStrategyOptionsExtensionsTests.cs (2)
127
RetryBudget = new
HttpRetryBudgetOptions
{ RetryRatio = 0.5 },
135
Assert.Equal(new
HttpRetryBudgetOptions
().RetryRatio, options.RetryBudget!.RetryRatio);
Resilience\HttpClientBuilderExtensionsTests.RetryBudget.cs (3)
39
options.Retry.RetryBudget.Should().BeEquivalentTo(new
HttpRetryBudgetOptions
());
115
retry.RetryBudget.Should().BeEquivalentTo(new
HttpRetryBudgetOptions
());
141
builder.AddStandardResilienceHandler(o => o.Retry.RetryBudget =
new
() { MinimumThroughput = 0 });
13 references to HttpRetryBudgetOptions
Microsoft.Extensions.Http.Resilience (8)
Internal\HttpRetryBudgetOptionsValidator.cs (1)
9
internal sealed partial class HttpRetryBudgetOptionsValidator : IValidateOptions<
HttpRetryBudgetOptions
>
Polly\HttpRetryResiliencePipelineBuilderExtensions.cs (4)
35
/// <see langword="null"/>, a budget with default <see cref="
HttpRetryBudgetOptions
"/> values is used, without modifying
37
/// are used as is. See <see cref="
HttpRetryBudgetOptions
"/> for more details.
58
internal static HttpRetryStrategyOptions CreateBudgetedCopy(HttpRetryStrategyOptions options,
HttpRetryBudgetOptions
budgetOptions)
89
HttpRetryBudgetOptions
budgetOptions)
Polly\HttpRetryStrategyOptions.cs (2)
83
/// See <see cref="
HttpRetryBudgetOptions
"/> for more details.
88
public
HttpRetryBudgetOptions
? RetryBudget { get; set; }
Polly\HttpRetryStrategyOptionsExtensions.cs (1)
30
/// This method sets <see cref="HttpRetryStrategyOptions.RetryBudget"/> to a new <see cref="
HttpRetryBudgetOptions
"/> instance
Microsoft.Extensions.Http.Resilience.Tests (5)
Polly\HttpRetryBudgetOptionsTests.cs (2)
16
var
options = new HttpRetryBudgetOptions();
48
var
options = new HttpRetryBudgetOptions
Polly\HttpRetryResiliencePipelineBuilderExtensionsTests.cs (1)
338
HttpRetryBudgetOptions
budget,
Resilience\HttpClientBuilderExtensionsTests.RetryBudget.cs (2)
94
var
budget = GetStandardOptions(builder.Services).Retry.RetryBudget!;
130
var
budget = GetStandardOptions(builder.Services).Retry.RetryBudget!;