HedgingActionGeneratorArguments<TResult>
public struct HedgingActionGeneratorArguments<TResult> : IEquatable<HedgingActionGeneratorArguments<TResult>>
Represents arguments used in the hedging resilience strategy.
The context that will be passed to action generated by HedgingActionGenerator.
This context is cloned from PrimaryContext.
The zero-based hedging attempt number.
The callback passed to hedging strategy.
The primary resilience context.
public HedgingActionGeneratorArguments(ResilienceContext PrimaryContext, ResilienceContext ActionContext, int Attempt, Func<ResilienceContext, ValueTask<Outcome<TResult>>> Callback)
Represents arguments used in the hedging resilience strategy.
public static bool op_Equality(HedgingActionGeneratorArguments<TResult> left, HedgingActionGeneratorArguments<TResult> right)
public static bool op_Inequality(HedgingActionGeneratorArguments<TResult> left, HedgingActionGeneratorArguments<TResult> right)
public void Deconstruct(out ResilienceContext PrimaryContext, out ResilienceContext ActionContext, out int Attempt, out Func Callback)