title: Nested Async calls with Top level function doing await
body: <p>I've this scenario, wanted to check if is feasible before going that route.</p>
  
  <p>I've a webApi project, there is a delegateHandler which adds some data in HttpContext.Current.Items. In controller there are few async calls which I'm doing with configureawait(false). Same in the library DLL.</p>
  
  <p>Overall code looks like this.....</p>
  
  <p><strong>In controller</strong></p>
  
  <pre><code>public async Task&lt;Entity&gt; func()
  {
  
  HttpContext.Current.Items.Add(key, value);
  
  await DBCalls.Method1Async().configureawait(false);
  await DBCalls.Method2Async().configureawait(false);
  
  var data = HttpContext.Current.Items[key];
  
  // rest of the method
  }
  </code></pre>
  
  <p><strong>In DLL, class DBCalls</strong></p>
  
  <pre><code>async void Method1Async()
  {
     await internalMethod1().configureawait(false)
  }
  async void Method2Async()
  {
     await internalMethod2().configureawait(false)
  }
  </code></pre>
  
  <p>Question is when execution resumes back on controller function will I get stored data back from HttpContext.Current.Items?</p>