Exemplo n.º 1
0
 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
         });
     }
 }
Exemplo n.º 2
0
 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
         });
     }
 }