Class TaskOrchestrationDispatcher
- Namespace
- DurableTask.Core
- Assembly
- DurableTask.Core.dll
Dispatcher for orchestrations to handle processing and renewing, completion of orchestration events
public class TaskOrchestrationDispatcher
- Inheritance
-
TaskOrchestrationDispatcher
- Inherited Members
Properties
IncludeDetails
Gets or sets flag whether to include additional details in error messages
public bool IncludeDetails { get; set; }
Property Value
IncludeParameters
Gets or sets flag whether to pass orchestration input parameters to sub orchestrations
public bool IncludeParameters { get; set; }
Property Value
Methods
OnFetchWorkItemAsync(TimeSpan, CancellationToken)
Method to get the next work item to process within supplied timeout
protected Task<TaskOrchestrationWorkItem> OnFetchWorkItemAsync(TimeSpan receiveTimeout, CancellationToken cancellationToken)
Parameters
receiveTimeout
TimeSpanThe max timeout to wait
cancellationToken
CancellationTokenA cancellation token used to cancel a fetch operation.
Returns
- Task<TaskOrchestrationWorkItem>
A new TaskOrchestrationWorkItem
OnProcessWorkItemAsync(TaskOrchestrationWorkItem)
Method to process a new work item
protected Task<bool> OnProcessWorkItemAsync(TaskOrchestrationWorkItem workItem)
Parameters
workItem
TaskOrchestrationWorkItemThe work item to process
Returns
StartAsync()
Starts the dispatcher to start getting and processing orchestration events
public Task StartAsync()
Returns
StopAsync(bool)
Stops the dispatcher to stop getting and processing orchestration events
public Task StopAsync(bool forced)
Parameters
forced
boolFlag indicating whether to stop gracefully or immediately