private async void CrashInsideAsyncTask_Click(object sender, RoutedEventArgs e) { try { await FakeService.DoStuffInBackground(); } catch (Exception ex) when(HandleExceptions.IsChecked.Value) { TrackException(ex); } }
private async void CrashInsideAsyncTask_Click(object sender, EventArgs e) { await FakeService.DoStuffInBackground(); }