Class PipelineRecordRetryingEventArgs<T>
Contains data for the record-retrying event.
public sealed class PipelineRecordRetryingEventArgs<T> where T : PipelineRecord
Type Parameters
TThe 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
recordTcontainerPipelineContainer<T>faultPipelineFaultStateattemptNumberintmaxAttemptsintdelayTimeSpandistributionPipelineRecordDistributionContextdiagnosticPipelineRecordDiagnosticContext
Properties
AttemptNumber
Gets the current retry attempt number.
public int AttemptNumber { get; }
Property Value
ComponentKind
Gets the component kind associated with the retry.
public PipelineComponentKind ComponentKind { get; }
Property Value
ComponentName
Gets the component name associated with the retry.
public string ComponentName { get; }
Property Value
Container
Gets the container associated with the retry.
public PipelineContainer<T> Container { get; }
Property Value
Delay
Gets the delay scheduled before the next attempt.
public TimeSpan Delay { get; }
Property Value
Diagnostic
Gets the diagnostic context for the record, if one exists.
public PipelineRecordDiagnosticContext? Diagnostic { get; }
Property Value
Distribution
Gets the distributed execution context for the record, if one exists.
public PipelineRecordDistributionContext? Distribution { get; }
Property Value
Exception
Gets the exception that triggered the retry.
public Exception Exception { get; }
Property Value
Fault
Gets the recorded fault state that triggered the retry.
public PipelineFaultState Fault { get; }
Property Value
MaxAttempts
Gets the maximum number of attempts allowed.
public int MaxAttempts { get; }
Property Value
Record
Gets the record being retried.
public T Record { get; }
Property Value
- T