Beispiel #1
0
 public void PushHistory(IAnalysisReport report)
 {
     if (ReportsHistory.LastOrDefault() == report)
     {
         return;
     }
     ReportsHistory.Add(report);
 }
Beispiel #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);
        }
Beispiel #3
0
 protected virtual void OnReported(IAnalysisReport e)
 {
     Reported?.Invoke(this, e);
 }
Beispiel #4
0
 public void Report(IAnalysisReport report)
 {
     ReportsHistory.Add(report);
     OnReported(report);
 }