Why HttpContext.Current is not null in async/await with ConfigureAwait
问题 I have a library async function called from controller. I expected HttpContext.Current to be null after await with ConfigureAwait(false) everywhere, but in controller it is not null. Can somebody explain why? //in libraby public class MyClass { public async Task WaitAsync() { await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false); var httpContext = System.Web.HttpContext.Current; // null, OK } } public class HomeController : Controller { public async Task<ActionResult> Index() { var