Example #1
0
        private void FireEvent(FileSystemEventArgs fileSystemEventArgs)
        {
            var args = new QueuedFileSystemEventArgs(fileSystemEventArgs)
            {
                EventTime = DateTime.Now
            };

            _eventBuffer.Add(args);
        }
Example #2
0
        private QueuedFileSystemEventArgs Prioritize(QueuedFileSystemEventArgs existingEventArgs, QueuedFileSystemEventArgs eventArgs)
        {
            if (existingEventArgs.CompareTo(eventArgs) > 0)
            {
                return(existingEventArgs);
            }

            return(eventArgs);
        }