TryCancelDurableJobAsync(DurableJob, CancellationToken)
abstract
public abstract Task<bool> TryCancelDurableJobAsync(DurableJob job, CancellationToken cancellationToken) Attempts to cancel a previously scheduled durable job.
Parameters
jobDurableJob- The durable job to cancel.
cancellationTokenCancellationToken- A cancellation token to cancel the operation.
Returns
A
System.Threading.Tasks.Task representing the asynchronous operation that returns true if the job was successfully canceled; otherwise, false.