title: Find the foreground thread from the background thread
body: <p>When you are in the context of the background thread.</p>
  
  <pre><code>Thread.IsBackground == true
  </code></pre>
  
  <p>There is a way to find the foreground thread calling this background thread ?</p>
  
  <p>Thanks for your help</p>
  
  <p>Update: The thread created are background and handled by a threadpool (Inside the Workflow Foundation Runtime). I have no way to add the reference from the main thread inside each background thread. There is no way to find that foreground thread from the threadpool ?</p>