Struct HedgeActionGeneratorEvent<TResult>
- Namespace
- Kevlar
- Assembly
- Kevlar.dll
Arguments used to select a result-returning operation for a hedged attempt.
public readonly struct HedgeActionGeneratorEvent<TResult>
Type Parameters
TResult
- Inherited Members
Properties
AttemptNumber
The zero-based execution attempt number (1 = first hedge after the initial attempt).
public int AttemptNumber { get; }
Property Value
Context
The isolated context that belongs to this attempt.
public KevlarContext Context { get; }
Property Value
OriginalAction
The original operation, including strategies nested inside the hedge. The supplied token becomes the cancellation token for that nested execution. Invoke it before the generated action completes; invoking a retained delegate afterward throws InvalidOperationException.
public Func<CancellationToken, ValueTask<TResult>> OriginalAction { get; }
Property Value
- Func<CancellationToken, ValueTask<TResult>>
Outcome
The latest handled outcome available before this attempt was launched, or null when pending attempts have not produced an outcome yet.
public Outcome<TResult>? Outcome { get; }
Property Value
- Outcome<TResult>?