Tag: <span>async</span>

Using HttpContext Safely After Async in ASP.NET MVC Applications

Another day, another Entity Framework (and ASP.NET MVC 5) async problem, and another solution for you!  Actually, today I have two solutions for you!  This time, I ran into a problem with HttpContext’s Items collection losing my IoC container when execution resumed after an await.  The fix is simple once you understand what’s going on….

Read More

Making TransactionScope Work with async/await in .NET 4.5

I ran into a frustrating little problem today.  I’m getting started with Entity Framework 6 and its async features on a new project, and my SpecsFor integration tests were bombing out unexpectedly.  In turns out the problem was caused by TransactionScope and async work together out of the box.  Or rather, how they don’t work…

Read More