private void endReadAll(ILogAnalyzer a) { try { a.EndReadAll(); } catch (Exception exc) { Reports.Add(new StatusReport { Source = a.GetType(), Message = $"ILogAnalyzer {a.GetType()} threw an exception during EndReadAll(). {exc.Message}", ReportType = ReportType.Warning }); } }
private void beginRead(ILogAnalyzer a, string sourceName) { try { a.BeginRead(sourceName); } catch (Exception exc) { Reports.Add(new StatusReport { Source = a.GetType(), Message = $"ILogAnalyzer {a.GetType()} threw an exception during BeginRead({sourceName}). {exc.Message}", ReportType = ReportType.Warning }); } }