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