Skip to content

DurableTaskAttemptCanceledException.DurableTaskAttemptCanceledException(DurableTaskAttemptCancellationReason, CancellationToken, Exception?)

DurableTaskAttemptCanceledException(DurableTaskAttemptCancellationReason, CancellationToken, Exception?)

View source
public DurableTaskAttemptCanceledException(DurableTaskAttemptCancellationReason reason, CancellationToken token, Exception? innerException = null)
Initializes an exception for an attempt canceled for reason, with a message which describes it.

Parameters

reasonDurableTaskAttemptCancellationReason
Why the host canceled the attempt.
tokenCancellationToken
The attempt's cancellation token.
innerExceptionException?
The exception which the canceled operation threw, if any.