title: Retry Failed Tasks in C#.Net -WhenAll Async
body: <p>How can I retry the failed <code>Task</code>.  Below executes tasks asynchronously. If one or many tasks failed I would like to retry the failed tasks for 3 times before setting the task as failed.</p>
  
  <pre><code>await Task.WhenAll(tasks).ConfigureAwait(false);
  if (!tasks.Any(a =&gt; a.Result == false))
  {
     result = true;
  }
  else 
  {
     // Retry
  }
  </code></pre>