title: WPF/C# Cancelling BackgroundWorker call outside DoWork
body: <p>I have a <code>BackgroundWorker</code> <code>DoWork</code> function as follows</p>
  
  <pre><code>    private void WorkerGetFeedData(object sender, DoWorkEventArgs args)
      {
              _feed.FetchUserData(_userNameCollection);
      }
  </code></pre>
  
  <p>The <code>FetchUserData</code> is a function in another class(whose object is <code>_feed</code>) in another project in the same solution. The data fetch process takes considerable time and I'd like for the user to be able to cancel the process if necessary. How do I convey a cancel operation from the user to a function call elsewhere and just stop it?</p>