コード例 #1
0
 public void RequestAnalysis()
 {
     try
     {
         AnalysisRequested?.Invoke(this, EventArgs.Empty);
     }
     catch (Exception ex) when(!ErrorHandler.IsCriticalException(ex))
     {
         logger.WriteLine(Analysis.AnalysisStrings.Requester_Error, ex);
     }
 }
コード例 #2
0
 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);
     }
 }