C# Async Tips & Tricks

The following are few tips and tricks for working with async in C#. This is as much a reference for myself as anyone else, but I figured it would probably »

Automatically get ASP.NET Identity user with an assist from Ninject

How many times have you found yourself doing this: [Authorize] public async Task<ActionResult> Foo() { var user = await UserManager.FindByIdAsync(User.Identity.GetUserId()); if (user == null) { AuthenticationManager.SignOut( »

Async != Faster

One of the most pervasive misunderstandings surrounding async is that it makes things go faster. This is categorically false. If anything, async will actually make things slower. Why? Well, there's »