Skip to content

IDurableTaskManager.CancelAsync(string, string?, CancellationToken)

CancelAsync(string, string?, CancellationToken)

virtual
View source
public virtual ValueTask CancelAsync(string rootId, string? reason, CancellationToken cancellationToken = default(CancellationToken))
Durably requests cancellation of the root task rootId of this grain and its execution tree, carrying reason.

Parameters

rootIdstring
The root task's identifier, as passed to TaskId.
reasonstring?
The reason which the task's DurableTaskContext reports, or null for none.
cancellationTokenCancellationToken
A token which abandons waiting for the request to commit.

Returns

An operation which completes once the cancellation request has committed and propagated.