public void RequestAnalysis() { try { AnalysisRequested?.Invoke(this, EventArgs.Empty); } catch (Exception ex) when(!ErrorHandler.IsCriticalException(ex)) { logger.WriteLine(Analysis.AnalysisStrings.Requester_Error, ex); } }
public void RequestAnalysis(IAnalyzerOptions analyzerOptions, params string[] filePaths) { try { var args = new AnalysisRequestEventArgs(analyzerOptions, filePaths); AnalysisRequested?.Invoke(this, args); } catch (Exception ex) when(!ErrorHandler.IsCriticalException(ex)) { logger.WriteLine(Analysis.AnalysisStrings.Requester_Error, ex); } }