While the 'async' and 'await' keywords look easy to use, there is a lot going on underneath the covers. ConfigureAwait is a cool little method that can solve nagging issues with asynchronous development.
await DoWorkAsync().ConfigureAwait(continueOnCapturedContext: false);
Console.WriteLine("After"); // on which thread does this run?
Learn all about it with this video: