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

HedgingStrategyOptions<TResult>

Hedging strategy options.

Gets or sets the hedging action generator that creates hedged actions.

public TimeSpan HedgingDelay { get; set; }

Gets or sets the minimal time of waiting before spawning a new hedged call.

Gets or sets the generator that generates hedging delays for each hedging attempt.

public int MaxHedgedAttempts { get; set; }

Gets or sets the maximum hedged attempts to perform the desired task.

public Func<OutcomeArguments<TResult, OnHedgingArguments>, ValueTask> OnHedging { get; set; }

Gets or sets the event that is raised when a hedging is performed.

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

Gets or sets the predicate that determines whether a hedging should be performed for a given result.