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

OnHedgingArguments

public sealed class OnHedgingArguments
Represents arguments used by the on-hedging event.
public int Attempt { 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 attempt, bool hasOutcome, TimeSpan executionTime)

Initializes a new instance of the OnHedgingArguments class.