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

RetryStrategyOptions<TResult>

Represents the options used to configure a retry strategy.
public DelayBackoffType BackoffType { get; set; }

Gets or sets the type of the back-off.

public TimeSpan Delay { get; set; }

Gets or sets the base delay between retries.

Gets or sets a generator that calculates the delay between retries.

public TimeSpan? MaxDelay { get; set; }

Gets or sets the maximum delay between retries.

public int MaxRetryAttempts { get; set; }

Gets or sets the maximum number of retries to use, in addition to the original call.

public Func<OnRetryArguments<TResult>, ValueTask> OnRetry { get; set; }

Gets or sets an event delegate that is raised when the retry happens.

public Func<double> Randomizer { get; set; }

Gets or sets the randomizer that is used by the retry strategy to generate random numbers.

public Func<RetryPredicateArguments<TResult>, ValueTask<bool>> ShouldHandle { get; set; }

Gets or sets a predicate that determines whether the retry should be executed for a given outcome.

public bool UseJitter { get; set; }

Gets or sets a value indicating whether jitter should be used when calculating the backoff delay between retries.

Initializes a new instance of the RetryStrategyOptions<T> class.