DurableOrchestrationClient.TerminateAsync(String, String) Method
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.
Terminates a running orchestration instance.
public override System.Threading.Tasks.Task TerminateAsync(string instanceId, string reason);
override this.TerminateAsync : string * string -> System.Threading.Tasks.Task
Public Overrides Function TerminateAsync (instanceId As String, reason As String) As Task
Parameters
- instanceId
- System.String
The ID of the orchestration instance to terminate.
- reason
- System.String
The reason for terminating the orchestration instance.
Returns
A task that completes when the terminate message is enqueued.