CancelAsync(string, string?, CancellationToken)
virtual
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
DurableTaskContextreports, ornullfor 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.
