How can I retry the failed Task
. 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.
await Task.WhenAll(tasks).ConfigureAwait(false);
if (!tasks.Any(a => a.Result == false))
{
result = true;
}
else
{
// Retry
}