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

OnHedgingArguments

public sealed class OnHedgingArguments
Represents arguments used by the on-hedging event.
public int AttemptNumber { get; }

Gets the zero-based hedging attempt number.

public TimeSpan ExecutionTime { get; }

Gets the execution time of hedging attempt or the hedging delay in case the attempt was not finished in time.

public bool HasOutcome { get; }

Gets a value indicating whether the outcome is available before loading the next hedged task.

public OnHedgingArguments(int attemptNumber, bool hasOutcome, TimeSpan executionTime)

Initializes a new instance of the OnHedgingArguments class.