Class PipelineRetryContext<T>
Provides context for retry policy evaluation.
public sealed class PipelineRetryContext<T> where T : PipelineRecord
Type Parameters
TThe pipeline record type being retried.
- Inheritance
-
PipelineRetryContext<T>
- Inherited Members
Constructors
PipelineRetryContext(Exception, PipelineContainer<T>, string, PipelineComponentKind, int, int, CancellationToken)
Initializes a new retry context.
public PipelineRetryContext(Exception exception, PipelineContainer<T> container, string componentName, PipelineComponentKind componentKind, int attemptNumber, int maxAttempts, CancellationToken cancellationToken)
Parameters
exceptionExceptioncontainerPipelineContainer<T>componentNamestringcomponentKindPipelineComponentKindattemptNumberintmaxAttemptsintcancellationTokenCancellationToken
Properties
AttemptNumber
Gets the current attempt number, starting at one.
public int AttemptNumber { get; }
Property Value
CancellationToken
Gets the cancellation token associated with the retry operation.
public CancellationToken CancellationToken { 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 pipeline container being retried.
public PipelineContainer<T> Container { get; }
Property Value
Exception
Gets the exception that triggered the retry evaluation.
public Exception Exception { get; }
Property Value
MaxAttempts
Gets the maximum number of attempts allowed by the retry policy.
public int MaxAttempts { get; }
Property Value
Record
Gets the record being retried.
public T Record { get; }
Property Value
- T