Class PipelineRetryAttempt
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
attemptNumberintcomponentNamestringcomponentKindPipelineComponentKindstartedAtUtcDateTimeOffsetcompletedAtUtcDateTimeOffsetdurationTimeSpandelayBeforeNextAttemptTimeSpanexceptionTypestringmessagestring
Properties
AttemptNumber
Gets the retry attempt number, starting at one.
public int AttemptNumber { get; }
Property Value
CompletedAtUtc
Gets the time the attempt completed.
public DateTimeOffset CompletedAtUtc { 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
DelayBeforeNextAttempt
Gets the configured delay before the next retry attempt.
public TimeSpan DelayBeforeNextAttempt { get; }
Property Value
Duration
Gets the duration of the attempt.
public TimeSpan Duration { get; }
Property Value
ExceptionType
Gets the exception type name captured for the attempt.
public string ExceptionType { get; }
Property Value
Message
Gets the exception message captured for the attempt.
public string Message { get; }
Property Value
StartedAtUtc
Gets the time the attempt started.
public DateTimeOffset StartedAtUtc { get; }