title: Using ConfigureAwait(false) on tasks passed in to Task.WhenAll() fails
body: <p>I'm trying to decide how to wait on all async tasks to complete.</p>
  
  <p>Here is the code I currently have</p>
  
  <pre><code>[HttpGet]
  public async Task&lt;JsonResult&gt; doAsyncStuff()
  {
    var t1 = this.service1.task1();
    var t2 = this.service2.task2();
    var t3 = this.service3.task3();
    var t4 = this.service4.task4();
  
    await Task.WhenAll(t1,t2,t3,t4);
    return this.Json(new {redirect = true, href = Url.Action("Blah")}, JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <p>I'm pretty certain the synchronization context isn't relevant so I tried this.</p>
  
  <pre><code>[HttpGet]
  public async Task&lt;JsonResult&gt; doAsyncStuff()
  {
    var t1 = this.service1.task1().ConfigureAwait(false);
    var t2 = this.service2.task2().ConfigureAwait(false);
    var t3 = this.service3.task3().ConfigureAwait(false);
    var t4 = this.service4.task4().ConfigureAwait(false);
  
    await Task.WhenAll(t1,t2,t3,t4);
    return this.Json(new {redirect = true, href = Url.Action("Blah")}, JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <p>The problem is now Task.WhenAll has invalid arguments because it will not accept Configured Task Awaiatables.</p>
  
  <p>So Task.WhenAll needs to be replaced with this</p>
  
  <pre><code>await t1; await t2; await t3; await t4;
  </code></pre>
  
  <p>This doesn't seem correct to me, yet virtually everywhere anyone has anything to say about ConfigureAwait it is "use it, if it doesn't error". And to my knowledge (I didn't write the tasks), they do not use the Synchronous Context, nor do they rely on it.</p>
  
  <p>Important to note I'd like task1 through task4 to run at the same time since they don't rely on the previous one finishing. As a result I don't want await in front of each task. But I don't want to return the Json response until after all 4 complete which is why I currently have the await Task.WhenAll() in the current code.</p>