title: How to implement progress using IEnumerable?
body: <p>I have a method that loops through an <code>IEnumerable</code> collection and passes each of them to another method. Something like:</p>
  
  <pre><code>void Run (object item)
  {
      foreach(var method in this.Methods)
          method (item);
  )
  </code></pre>
  
  <p>How can I implement sort of progress that will be reflected in a progress bar? I could do this easily if it was directly coded inside this method but this method is contained in a type outside the <code>ViewModel</code>, which I can call of course.</p>
  
  <p>I just don't know how to implement it and get it from that method and reflect the changes in the UI, by passing it to <code>ViewModel</code>, etc.</p>
  
  <p>Any ideas?</p>