My knowledge of how async/await methods are run and on what thread is a little hazy.
I recommend you start with my async
intro, which covers the keywords and how they determine which thread to use.
I'm trying to convert the event based asynchronous approach to a Task based async/await one.
The MSDN documentation on this is quite good.
You do not need to block an async
method; just create a TAP (Task-based) wrapper for the EAP (method/event pair). Then you can just call your TAP method and await
the returned task.