TrySetCanceled
abstract
public abstract bool TrySetCanceled() Attempts to transition the durable state to canceled.
Returns
true if the state was transitioned; otherwise, false.public abstract bool TrySetCanceled()true if the state was transitioned; otherwise, false.public abstract bool TrySetException(Exception exception)exceptionExceptiontrue if the state was transitioned; otherwise, false.public abstract bool TrySetResult(T value)valueTtrue if the state was transitioned; otherwise, false.