private void FireEvent(FileSystemEventArgs fileSystemEventArgs) { var args = new QueuedFileSystemEventArgs(fileSystemEventArgs) { EventTime = DateTime.Now }; _eventBuffer.Add(args); }
private QueuedFileSystemEventArgs Prioritize(QueuedFileSystemEventArgs existingEventArgs, QueuedFileSystemEventArgs eventArgs) { if (existingEventArgs.CompareTo(eventArgs) > 0) { return(existingEventArgs); } return(eventArgs); }