Compartilhar via


GrpcDurableTaskClient.ResumeInstanceAsync Method

Definition

Resumes an orchestration instance that was suspended via SuspendInstanceAsync(String, String, CancellationToken).

public override System.Threading.Tasks.Task ResumeInstanceAsync (string instanceId, string? reason = default, System.Threading.CancellationToken cancellation = default);
override this.ResumeInstanceAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function ResumeInstanceAsync (instanceId As String, Optional reason As String = Nothing, Optional cancellation As CancellationToken = Nothing) As Task

Parameters

instanceId
String

The instance ID of the orchestration to resume.

reason
String

The optional resume reason.

cancellation
CancellationToken

A CancellationToken that can be used to cancel the resume operation. Note, cancelling this token does not re-suspend the orchestration if resume was successful.

Returns

A task that completes when the resume has been committed to the backend.

Applies to