RetryStrategyOptions<TResult>
Represents the options used to configure a retry strategy.
Gets or sets the type of the back-off.
Gets or sets the base delay between retries.
Gets or sets an outcome event that is used to register on-retry callbacks.
Gets or sets the maximum number of retries to use, in addition to the original call.
public Func<OutcomeArguments<TResult, RetryDelayArguments>, ValueTask<TimeSpan>> RetryDelayGenerator { get; set; }
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.
public RetryStrategyOptions()