示例#1
0
 public void PushHistory(IAnalysisReport report)
 {
     if (ReportsHistory.LastOrDefault() == report)
     {
         return;
     }
     ReportsHistory.Add(report);
 }
示例#2
0
        public bool TryGetReport(string errorCode, out IAnalysisReport report)
        {
            report = AnalysisReport.EmptyReport;

            report = Reports.FirstOrDefault(x => x.Id.Equals(errorCode, StringComparison.InvariantCulture));

            if (report == null)
            {
                return(false);
            }
            return(true);
        }
示例#3
0
 protected virtual void OnReported(IAnalysisReport e)
 {
     Reported?.Invoke(this, e);
 }
示例#4
0
 public void Report(IAnalysisReport report)
 {
     ReportsHistory.Add(report);
     OnReported(report);
 }