Struct HandlingEvent<TResult>

Namespace
Kevlar
Assembly
Kevlar.dll

Context supplied to a result-aware handling predicate.

public readonly struct HandlingEvent<TResult>

Type Parameters

TResult

The execution result type.

Inherited Members

Properties

AttemptNumber

The zero-based attempt number for retry and hedging; zero for other strategies.

public int AttemptNumber { get; }

Property Value

int

Context

The active execution context. Do not retain this pooled object.

public KevlarContext Context { get; }

Property Value

KevlarContext

Outcome

The exception or result being classified.

public Outcome<TResult> Outcome { get; }

Property Value

Outcome<TResult>

StrategyIndex

The zero-based index of the strategy evaluating the outcome.

public int StrategyIndex { get; }

Property Value

int