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 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)