Polly.Hedging.HedgingStrategyOptions<TResult>
Hedging strategy options.
namespace Polly.Hedging
{
public class HedgingStrategyOptions<[System.Runtime.CompilerServices.Nullable(2)] TResult> : ResilienceStrategyOptions
{
public TimeSpan Delay { get; set; }
public int MaxHedgedAttempts { get; set; }
public Func<HedgingPredicateArguments<TResult>, ValueTask<bool>> ShouldHandle { get; set; }
public Func<HedgingActionGeneratorArguments<TResult>, Func<ValueTask<Outcome<TResult>>>> ActionGenerator { get; set; }
public Func<HedgingDelayGeneratorArguments, ValueTask<TimeSpan>> DelayGenerator { get; set; }
public Func<OnHedgingArguments<TResult>, ValueTask> OnHedging { get; set; }
public HedgingStrategyOptions();
}
}