title: Alternative way to update status asynchronously than BackgroundWorker
body: <p>I am working on some software that is making calculations on the server side. I have tried using BackgroundWorker and it was working perfectly fine until I tried switching from fat client to a web service. The error (which I was already expecting due to what my colleagues told me) "BackgroundWorker is not marked as Serializable" occured. The goal of my application is to update the client with the progress of the calculation as well as the name of the record currently being calculated. If needed I can post some code, but in this case I doubt it is really relevant to the problem. The scheme of what I am trying to achieve could be shown like this:</p>
  
  <ul>
  <li>Client hits button "prepare" </li>
  <li>Server gets the call</li>
  <li>Server sends the data</li>
  <li>Client receives the records list to confirm</li>
  <li>Client confirms their choice (I then set up the background worker and send it to the server)</li>
  <li>Server gets the call (receives the background worker's reference, as well as all the records needed to calculate at once)</li>
  <li><p>With a loop I run through the records (each calculation takes ~1-3 seconds), update BackgroundWorker's status like this:</p>
  
  <blockquote>
  <pre><code>worker.ReportProgress(i * 100 / ids.Length, "Currently counting: " + id + "...");
  Calculate(ids[i]);
  worker.ReportProgress((i+1) * 100 / ids.Length, "Currently counting: " + id + "...");
  </code></pre>
  </blockquote></li>
  </ul>
  
  <p><strong>Is there any way to achieve what I am trying to to work also on the web service too?</strong> 
  I assume it would require either tricking BackgroundWorker into Serializable or maybe there are other ways to update the status from the server to the client?</p>
  
  <p>P.S. I am not sending very much data back from the server (I could actually even try to send even less data like id only), so I assume that won't be a problem of the overload.</p>