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

HedgingActionGeneratorArguments<TResult>

Represents arguments used in the hedging resilience strategy.
public ResilienceContext ActionContext { get; set; }

The context that will be passed to action generated by HedgingActionGenerator. This context is cloned from PrimaryContext.

public int Attempt { get; set; }

The zero-based hedging attempt number.

public Func<ResilienceContext, ValueTask<Outcome<TResult>>> Callback { get; set; }

The callback passed to hedging strategy.

public ResilienceContext PrimaryContext { get; set; }

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)

public bool Equals(HedgingActionGeneratorArguments<TResult> other)