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