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