title: MaxDegreeOfParallelism with Task.Factory.StartNew()
body: <p>I have a program where I download files from the Internet and process them. Following is the function that I have written to download the file using threads. </p>
  
  <pre><code>Task&lt;File&gt; re = Task.Factory.StartNew(() =&gt; { /*Download the File*/ });
  re.ContinueWith((x) =&gt; { /*Do another function*/ });
  </code></pre>
  
  <p>I now want it to use only 10 threads for downloading. I have looked in to <strong>ParallelOptions.MaxDegreeOfParallelism</strong> property, but I can't understand how to use it when the task returns a result. </p>