Struct RetryEvent<TResult>
- Namespace
- Kevlar
- Assembly
- Kevlar.dll
Describes a retry that is about to happen, with the handled outcome typed as TResult.
public readonly struct RetryEvent<TResult>
Type Parameters
TResult
- Inherited Members
Properties
AttemptNumber
The zero-based retry attempt number (0 = first retry after the initial execution).
public int AttemptNumber { get; }
Property Value
Context
The ambient execution context. It is pooled; do not retain it or its property bag after the callback (including an asynchronous callback) completes.
public KevlarContext Context { get; }
Property Value
Delay
The delay that will be waited before the retry.
public TimeSpan Delay { get; }
Property Value
Outcome
The handled outcome — the exception or result value that triggered this retry.
public Outcome<TResult> Outcome { get; }
Property Value
- Outcome<TResult>
Methods
RequestTerminalInspection()
Requests one final delay-generator invocation when a handled outcome exhausts the retry budget. The inspection does not schedule another retry.
public void RequestTerminalInspection()
SuppressAdditionalAttempts()
Suppresses this retry and any later retry or hedge attempts in the current execution.
public void SuppressAdditionalAttempts()