Skip to content

ScheduledTask.CancelAsync(string?, CancellationToken)

CancelAsync(string?, CancellationToken)

View source
public ValueTask CancelAsync(string? reason, CancellationToken cancellationToken = default(CancellationToken))
Durably requests cancellation carrying reason.

Parameters

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