OnHedgingArguments<TResult>
Represents arguments used by the on-hedging event.
Gets the zero-based hedging attempt number.
Gets the context of this event.
Gets the execution duration of hedging attempt or the hedging delay in case the attempt was not finished in time.
Gets the outcome that needs to be hedged, if any.
public OnHedgingArguments(ResilienceContext context, Outcome<TResult>? outcome, int attemptNumber, TimeSpan duration)
Initializes a new instance of the OnHedgingArguments<T> struct.