Table of Contents

Class PipelineRetryAttempt

Namespace
Pipelinez.Core.Retry
Assembly
Pipelinez.dll

Describes a single retry attempt performed for a transient failure.

public sealed class PipelineRetryAttempt
Inheritance
PipelineRetryAttempt
Inherited Members

Constructors

PipelineRetryAttempt(int, string, PipelineComponentKind, DateTimeOffset, DateTimeOffset, TimeSpan, TimeSpan, string, string)

Initializes a new retry attempt record.

public PipelineRetryAttempt(int attemptNumber, string componentName, PipelineComponentKind componentKind, DateTimeOffset startedAtUtc, DateTimeOffset completedAtUtc, TimeSpan duration, TimeSpan delayBeforeNextAttempt, string exceptionType, string message)

Parameters

attemptNumber int
componentName string
componentKind PipelineComponentKind
startedAtUtc DateTimeOffset
completedAtUtc DateTimeOffset
duration TimeSpan
delayBeforeNextAttempt TimeSpan
exceptionType string
message string

Properties

AttemptNumber

Gets the retry attempt number, starting at one.

public int AttemptNumber { get; }

Property Value

int

CompletedAtUtc

Gets the time the attempt completed.

public DateTimeOffset CompletedAtUtc { get; }

Property Value

DateTimeOffset

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

DelayBeforeNextAttempt

Gets the configured delay before the next retry attempt.

public TimeSpan DelayBeforeNextAttempt { get; }

Property Value

TimeSpan

Duration

Gets the duration of the attempt.

public TimeSpan Duration { get; }

Property Value

TimeSpan

ExceptionType

Gets the exception type name captured for the attempt.

public string ExceptionType { get; }

Property Value

string

Message

Gets the exception message captured for the attempt.

public string Message { get; }

Property Value

string

StartedAtUtc

Gets the time the attempt started.

public DateTimeOffset StartedAtUtc { get; }

Property Value

DateTimeOffset