title: c# check if task is running
body: <p>I need to be able to check if a specific task is running:</p>
  
  <pre><code>            Task.Run(() =&gt;
                  {
                      int counter = 720;
                      int sleepTime = 7000;
                      int operationId = 0;
                      Thread.CurrentThread.Name = "GetTasksStatusAsync";
  ......
  </code></pre>
  
  <p>so in my code somewhere in another class I need to check "GetTasksStatusAsync" is running.
  thanks</p>