Share via


DurabilityProvider.SuspendTaskOrchestrationAsync(String, String) Method

Definition

Suspend the specified orchestration instance with a reason.

public System.Threading.Tasks.Task SuspendTaskOrchestrationAsync (string instanceId, string reason);
member this.SuspendTaskOrchestrationAsync : string * string -> System.Threading.Tasks.Task
Public Function SuspendTaskOrchestrationAsync (instanceId As String, reason As String) As Task

Parameters

instanceId
String

Instance to suspend.

reason
String

Reason for suspending the instance.

Returns

A task that completes when the suspend message is enqueued.

Applies to