RetryContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.