Beispiel #1
0
 private async void CheckSurveyNews()
 {
     // Don't return a task, the caller doesn't want to await on this
     // and hold up loading of the project.
     // We do it this way instead of calling DoNotWait extension in order
     // to handle any non critical exceptions.
     try {
         await _surveyNews.CheckSurveyNewsAsync(false);
     } catch (Exception ex) when(!ex.IsCriticalException())
     {
         GeneralLog.Write(ex);
     }
 }
 private async void CheckSurveyNews()
 {
     // Don't return a task, the caller doesn't want to await on this
     // and hold up loading of the project.
     // We do it this way instead of calling DoNotWait extension in order
     // to handle any non critical exceptions.
     try {
         await _surveyNews.CheckSurveyNewsAsync(false);
     } catch (Exception ex) when(!ex.IsCriticalException())
     {
         _coreShell.Services.Log.Write(LogVerbosity.Normal, MessageCategory.Error, "SurveyNews exception: " + ex.Message);
     }
 }