public void Analize(LogEntry entry, IEntryIterator <LogEntry> iterator) { iterator.Previous(); if (iterator.Current != null && (entry.TimeCreated - iterator.Current.TimeCreated).Value > TimeSpan.FromMinutes(5)) { _entries.Add(entry); } }
public void Analize(LogEntry entry, IEntryIterator <LogEntry> iterator) { if (entry == null) { throw new ArgumentNullException(nameof(entry)); } if (!(entry is DbInstallLogEntry dbInstallLogEntry)) { throw new InvalidOperationException("Entry of wrong type provided"); } if (dbInstallLogEntry.DacpackStatus == "SUCCESS") { _entries.Add(entry); } }