Table of Contents

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

T

The 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

exception Exception
container PipelineContainer<T>
fault PipelineFaultState
cancellationToken CancellationToken

Properties

CancellationToken

Gets the runtime cancellation token associated with the pipeline.

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

ComponentKind

Gets the component kind associated with the fault.

public PipelineComponentKind ComponentKind { get; }

Property Value

PipelineComponentKind

ComponentName

Gets the component name associated with the fault.

public string ComponentName { get; }

Property Value

string

Container

Gets the faulted pipeline container.

public PipelineContainer<T> Container { get; }

Property Value

PipelineContainer<T>

Exception

Gets the exception that triggered error handling.

public Exception Exception { get; }

Property Value

Exception

Fault

Gets the recorded fault state.

public PipelineFaultState Fault { get; }

Property Value

PipelineFaultState

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

int

RetryExhausted

Gets a value indicating whether the record exhausted at least one retry attempt.

public bool RetryExhausted { get; }

Property Value

bool

RetryHistory

Gets the retry history recorded for the container.

public IReadOnlyList<PipelineRetryAttempt> RetryHistory { get; }

Property Value

IReadOnlyList<PipelineRetryAttempt>