Table of Contents

Class PipelineRecordRetryingEventArgs<T>

Namespace
Pipelinez.Core.Eventing
Assembly
Pipelinez.dll

Contains data for the record-retrying event.

public sealed class PipelineRecordRetryingEventArgs<T> where T : PipelineRecord

Type Parameters

T

The retried record type.

Inheritance
PipelineRecordRetryingEventArgs<T>
Inherited Members

Constructors

PipelineRecordRetryingEventArgs(T, PipelineContainer<T>, PipelineFaultState, int, int, TimeSpan, PipelineRecordDistributionContext?, PipelineRecordDiagnosticContext?)

Initializes a new record-retrying event payload.

public PipelineRecordRetryingEventArgs(T record, PipelineContainer<T> container, PipelineFaultState fault, int attemptNumber, int maxAttempts, TimeSpan delay, PipelineRecordDistributionContext? distribution = null, PipelineRecordDiagnosticContext? diagnostic = null)

Parameters

record T
container PipelineContainer<T>
fault PipelineFaultState
attemptNumber int
maxAttempts int
delay TimeSpan
distribution PipelineRecordDistributionContext
diagnostic PipelineRecordDiagnosticContext

Properties

AttemptNumber

Gets the current retry attempt number.

public int AttemptNumber { get; }

Property Value

int

ComponentKind

Gets the component kind associated with the retry.

public PipelineComponentKind ComponentKind { get; }

Property Value

PipelineComponentKind

ComponentName

Gets the component name associated with the retry.

public string ComponentName { get; }

Property Value

string

Container

Gets the container associated with the retry.

public PipelineContainer<T> Container { get; }

Property Value

PipelineContainer<T>

Delay

Gets the delay scheduled before the next attempt.

public TimeSpan Delay { get; }

Property Value

TimeSpan

Diagnostic

Gets the diagnostic context for the record, if one exists.

public PipelineRecordDiagnosticContext? Diagnostic { get; }

Property Value

PipelineRecordDiagnosticContext

Distribution

Gets the distributed execution context for the record, if one exists.

public PipelineRecordDistributionContext? Distribution { get; }

Property Value

PipelineRecordDistributionContext

Exception

Gets the exception that triggered the retry.

public Exception Exception { get; }

Property Value

Exception

Fault

Gets the recorded fault state that triggered the retry.

public PipelineFaultState Fault { get; }

Property Value

PipelineFaultState

MaxAttempts

Gets the maximum number of attempts allowed.

public int MaxAttempts { get; }

Property Value

int

Record

Gets the record being retried.

public T Record { get; }

Property Value

T