Skip to content

DurableTaskContext.StartTaskAsync(TaskId, DurableTask, DurableTaskStartOptions, CancellationToken)

StartTaskAsync(TaskId, DurableTask, DurableTaskStartOptions, CancellationToken)

abstract
protected internal abstract ValueTask<IScheduledTaskHandle> StartTaskAsync(TaskId taskId, DurableTask taskDefinition, DurableTaskStartOptions options, CancellationToken cancellationToken)
Starts, or reattaches to, taskDefinition under taskId, and records the start in this execution.

Parameters

taskIdTaskId
A child of DurableTaskContext for an attached task, or the root identifier of a DurableTaskStartOptions task.
taskDefinitionDurableTask
The definition to start.
optionsDurableTaskStartOptions
How the task relates to this execution, and when the start completes.
cancellationTokenCancellationToken
A token which abandons the start. It doesn't cancel the task.

Returns

A handle through which this execution observes the task.