Exemple #1
0
 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);
     }
 }
Exemple #2
0
        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);
            }
        }