Twin Cities Code Camp

Keith Voels

Using Async / Await in C# as Designed

.net c# async/await performance intermediate
by Keith Voels

Sat, Apr 13, 2019
Room: P0838
Time: 12:30

The syntax for Async / Await in C# is straightforward but the under-the-covers mechanics are not. This discussion will provide a high-level understanding of those mechanics so you can be a true wizard with Async / Await in C#. We will start with an example showing the amazing performance gains that can be had using Async / Await. Then discuss Task Based Asynchronous Processing and the under-the-covers mechanisms ExecutionContext and SynchronizationContext to understand their role. We finish with some advanced examples showing the power of the Tasks namespace. This is an intermediate discussion for C# developers who are already using Async/Await.

About the Author

I've been a .NET Developer for over 15 years. Currently I am a senior software developer at Patterson Companies.