With the beauty of undo markers, you do not need to know or care about how they are set. It all depends on the person providing you the token. You just look at the token and see if it is installed.
If you call a method that accepts a CancellationToken , and you want to know how to create it, which you can set when you want, then you should use the CancellationTokenSource to create the token; you can use CTS to cancel the token that it generates, or set it to cancel after a certain period of time.
Servy source share