I start a task, that start other tasks and so forth.
Given that tree, if any task fails the result of the whole operation is useless. I\'m considering using cancellation tok
As an extension of the answers provided so far, if you want to have both a CancellationToken
instance provided to your methods, and cancel internally, you should examine CancellationTokenSource.CreateLinkedTokenSource.
In essence this will cancel either when cts.Cancel()
is called, or one of its supplied tokens is.