Skip to content

DurableTaskReference<TResult>.AbortAsync(string, CancellationToken)

AbortAsync(string, CancellationToken)

View source
public ValueTask AbortAsync(string reason, CancellationToken cancellationToken = default(CancellationToken))
Administratively aborts the task, which terminalizes it and its execution tree as failed with DurableTaskAbortedException without running further task code.

Parameters

reasonstring
The reason for the abort, recorded as the exception message.
cancellationTokenCancellationToken
A token which abandons waiting for the abort to commit.