Skip to content

DurableTaskAttemptCanceledException.DurableTaskAttemptCanceledException(string?, Exception?, DurableTaskAttemptCancellationReason, CancellationToken)

DurableTaskAttemptCanceledException(string?, Exception?, DurableTaskAttemptCancellationReason, CancellationToken)

View source
public DurableTaskAttemptCanceledException(string? message, Exception? innerException, DurableTaskAttemptCancellationReason reason, CancellationToken token)
Initializes an exception for an attempt canceled for reason.

Parameters

messagestring?
The message which describes the cancellation.
innerExceptionException?
The exception which the canceled operation threw.
reasonDurableTaskAttemptCancellationReason
Why the host canceled the attempt.
tokenCancellationToken
The attempt's cancellation token.