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

HedgingExecutionContext<T>

The context associated with an execution of hedging resilience strategy. It holds the resources for all executed hedged tasks (primary + secondary) and is responsible for resource disposal.
public struct ExecutionInfo<T, TResult> : IEquatable<ExecutionInfo<T, TResult>>

public bool IsInitialized { get; }

public int LoadedTasks { get; }

public IReadOnlyList<TaskExecution<T>> Tasks { get; }

public HedgingExecutionContext(ObjectPool<TaskExecution<T>> executionPool, TimeProvider timeProvider, int maxAttempts, Action<HedgingExecutionContext<T>> onReset)

public ValueTask<ExecutionInfo<T, T>> LoadExecutionAsync<TState>(Func<ResilienceContext, TState, ValueTask<Outcome<T>>> primaryCallback, TState state)