Microsoft.VisualStudio.R.Package.ProjectSystem.RProjectLoadHooks.CheckSurveyNews C# (CSharp) Method

CheckSurveyNews() private method

private CheckSurveyNews ( ) : void
return void
        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.WriteAsync(LogVerbosity.Normal, MessageCategory.Error, "SurveyNews exception: " + ex.Message).DoNotWait();
            }
        }