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

HedgingExecutionContext<T>

sealed class 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 ContextSnapshot Snapshot { get; }

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

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

public void Complete()

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