Freigeben über


RetryContext Constructors

Definition

Overloads

RetryContext(RetryContext)
RetryContext(TaskOrchestrationContext, Int32, TaskFailureDetails, TimeSpan, CancellationToken)

Retry context data that's provided to task retry handler implementations.

RetryContext(RetryContext)

protected RetryContext (Microsoft.DurableTask.RetryContext original);
Protected Sub New (original As RetryContext)

Parameters

original
RetryContext

Applies to

RetryContext(TaskOrchestrationContext, Int32, TaskFailureDetails, TimeSpan, CancellationToken)

Retry context data that's provided to task retry handler implementations.

public RetryContext (Microsoft.DurableTask.TaskOrchestrationContext OrchestrationContext, int LastAttemptNumber, Microsoft.DurableTask.TaskFailureDetails LastFailure, TimeSpan TotalRetryTime, System.Threading.CancellationToken CancellationToken);
new Microsoft.DurableTask.RetryContext : Microsoft.DurableTask.TaskOrchestrationContext * int * Microsoft.DurableTask.TaskFailureDetails * TimeSpan * System.Threading.CancellationToken -> Microsoft.DurableTask.RetryContext
Public Sub New (OrchestrationContext As TaskOrchestrationContext, LastAttemptNumber As Integer, LastFailure As TaskFailureDetails, TotalRetryTime As TimeSpan, CancellationToken As CancellationToken)

Parameters

OrchestrationContext
TaskOrchestrationContext

The context of the parent orchestrator.

LastAttemptNumber
Int32

The previous retry attempt number.

LastFailure
TaskFailureDetails

The details of the previous task failure.

TotalRetryTime
TimeSpan

The total amount of time spent in a retry loop for the current task.

CancellationToken
CancellationToken

A cancellation token that can be used to cancel the retries.

Applies to