I was working on a presentation and thought the following should fail since the ActionResult isn\'t being returned on the right context. I\'ve load tested it with VS and got no
In your code, HttpContext
is a member of your AsyncController
base class. It is not the current context for the executing thread.
Also, in your case, HttpContext
is still valid, since the request has not yet completed.
I'm unable to test this at the moment, but I would expect it to fail if you used System.Web.HttpContext.Current
instead of HttpContext
.
P.S. Security is always propagated, regardless of ConfigureAwait
- this makes sense if you think about it. I'm not sure about culture, but I wouldn't be surprised if it was always propagated too.