title: Parallel.ForEach how to know at which item ? - which loop?
body: <p>Example </p>
  
  <pre><code>  var options = new ParallelOptions()
    {
        MaxDegreeOfParallelism = 10
    };
  
    List&lt;string&gt; lstAllUrls = File.ReadAllLines("myList.txt").ToList&lt;string&gt;();
  
    Parallel.ForEach(lstAllUrls, options, myFunctionThatFetchPage);
  </code></pre>
  
  <p>Now this works perfectly fine. What I want to know is: How can I tell at which iteration I currently am. I mean lets say my list has 100000 URLs. It starts fetching them. But I also want to print on  the screen which URL is getting fetched at the moment.</p>
  
  <p>How can I do that? How can I tell at which item of the given list the loop currently is?</p>