Struct HedgeActionGeneratorEvent

Namespace
Kevlar
Assembly
Kevlar.dll

Arguments used to select a void-returning operation for a hedged attempt.

public readonly struct HedgeActionGeneratorEvent
Inherited Members

Properties

AttemptNumber

The zero-based execution attempt number (1 = first hedge after the initial attempt).

public int AttemptNumber { get; }

Property Value

int

Context

The isolated context that belongs to this attempt.

public KevlarContext Context { get; }

Property Value

KevlarContext

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> OriginalAction { get; }

Property Value

Func<CancellationToken, ValueTask>