Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Caliburn action message swallows exceptions when working with async methods

$
0
0
The unhandled exception handler seems to fire if you change the action method to return void rather than Task

eg:
public async void BeginProcess()
{
    throw new Exception("Test");
}
I was always under the impression that async void was in most cases bad(TM) code, but it appears to be whats required in this case. Not sure why Caliburn doesn't handle both situations similarly.

Viewing all articles
Browse latest Browse all 1760

Trending Articles