<PackageReference Include="Polly.Core" Version="8.4.0" />

OnHedgingArguments<TResult>

public struct OnHedgingArguments<TResult>
Represents arguments used by the on-hedging event.

Gets the action context that will be used for the hedged action.

public int AttemptNumber { get; }

Gets the zero-based hedging attempt number.

Gets the primary resilience context as received by the hedging strategy.

public OnHedgingArguments(ResilienceContext primaryContext, ResilienceContext actionContext, int attemptNumber)

Initializes a new instance of the OnHedgingArguments<T> struct.