title: Get Task CancellationToken
body: <p>Can I get <code>CancellationToken</code> which was passed to <code>Task</code> constructor during task action executing. Most of samples look like this:</p>
  
  <pre><code>CancellationTokenSource cts = new CancellationTokenSource();
  CancellationToken token = cts.Token;
  
  Task myTask = Task.Factory.StartNew(() =&gt;
  {
      for (...)
      {
          token.ThrowIfCancellationRequested();
  
          // Body of for loop.
      }
  }, token);
  </code></pre>
  
  <p>But what if my action is not lambda but a method placed in other class and I don't have direct access to <code>token</code>? Is the only way is to pass <code>token</code> as state?</p>