<PackageReference Include="Polly.Core" Version="8.6.1" />

Polly.Retry.RetryStrategyOptions<TResult>

Represents the options used to configure a retry strategy.
namespace Polly.Retry { public class RetryStrategyOptions<[System.Runtime.CompilerServices.Nullable(2)] TResult> : ResilienceStrategyOptions { public int MaxRetryAttempts { get; set; } public DelayBackoffType BackoffType { get; set; } public bool UseJitter { get; set; } public TimeSpan Delay { get; set; } public TimeSpan? MaxDelay { get; set; } public Func<RetryPredicateArguments<TResult>, ValueTask<bool>> ShouldHandle { get; set; } public Func<RetryDelayGeneratorArguments<TResult>, ValueTask<TimeSpan?>> DelayGenerator { get; set; } public Func<OnRetryArguments<TResult>, ValueTask> OnRetry { get; set; } public Func<double> Randomizer { get; set; } public RetryStrategyOptions(); } }