Exception handling inside “async void” WPF command handlers
问题 I'm reviewing some WPF code of my colleagues, which is a library of UserControl -based components with a lot of async void event and command handlers. These methods currently do not implement any error handling internally. The code in a nutshell: <Window.CommandBindings> <CommandBinding Command="ApplicationCommands.New" Executed="NewCommand_Executed"/> </Window.CommandBindings> private async void NewCommand_Executed(object sender, ExecutedRoutedEventArgs e) { // do some fake async work (and