Tag Archives: await

Async/await not reacting as expected in Console App

If you had to use an await call in a .net Console app, you would definitely notice that the await is simply skipped over. This is because await only ensure that the rest of the code in the current async … Continue reading

Posted in C#, Console | Tagged , | Leave a comment

C# 6 Features – “Await in catch and finally blocks.”

The C# team had recently announced a few new features for C# 6 that will ships with VS 2015. One of the feature that caught my attention is “Await in catch and finally blocks.” Recall that I actually had a … Continue reading

Posted in C# | Tagged , | 1 Comment

await MessageDialog in the body of a catch clause

A major disadvantage of using MessageDialog is that you need to await it to show the messagebox and when often you would need to display error messages in the catch clause. In normal situation you would be doing the below: … Continue reading

Posted in C#, Windows Phone, winrt | Tagged , , , , | 5 Comments