Class PipelineErrorContext<T>
- Namespace
- Pipelinez.Core.ErrorHandling
- Assembly
- Pipelinez.dll
Provides the context passed to a configured pipeline error handler.
public sealed class PipelineErrorContext<T> where T : PipelineRecord
Type Parameters
TThe pipeline record type being handled.
- Inheritance
-
PipelineErrorContext<T>
- Inherited Members
Constructors
PipelineErrorContext(Exception, PipelineContainer<T>, PipelineFaultState, CancellationToken)
Initializes a new error handler context.
public PipelineErrorContext(Exception exception, PipelineContainer<T> container, PipelineFaultState fault, CancellationToken cancellationToken)
Parameters
exceptionExceptioncontainerPipelineContainer<T>faultPipelineFaultStatecancellationTokenCancellationToken
Properties
CancellationToken
Gets the runtime cancellation token associated with the pipeline.
public CancellationToken CancellationToken { get; }
Property Value
ComponentKind
Gets the component kind associated with the fault.
public PipelineComponentKind ComponentKind { get; }
Property Value
ComponentName
Gets the component name associated with the fault.
public string ComponentName { get; }
Property Value
Container
Gets the faulted pipeline container.
public PipelineContainer<T> Container { get; }
Property Value
Exception
Gets the exception that triggered error handling.
public Exception Exception { get; }
Property Value
Fault
Gets the recorded fault state.
public PipelineFaultState Fault { get; }
Property Value
Record
Gets the faulted record.
public T Record { get; }
Property Value
- T
RetryAttemptCount
Gets the number of recorded retry attempts.
public int RetryAttemptCount { get; }
Property Value
RetryExhausted
Gets a value indicating whether the record exhausted at least one retry attempt.
public bool RetryExhausted { get; }
Property Value
RetryHistory
Gets the retry history recorded for the container.
public IReadOnlyList<PipelineRetryAttempt> RetryHistory { get; }