<PackageReference Include="Polly.Core" Version="8.0.0-alpha.4" />

RetryStrategyOptions<TResult>

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

Gets or sets the type of the back-off.

public TimeSpan BaseDelay { get; set; }

Gets or sets the base delay between retries.

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

Gets or sets an outcome event that is used to register on-retry callbacks.

public int RetryCount { get; set; }

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

Gets or sets the generator instance that is used to calculate the time between retries.

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

Gets or sets an outcome predicate that is used to register the predicates to determine if a retry should be performed.