C# Класс CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler

Created/Changed/Deleted file system events handler to report the events to the given queue.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
timer System.Timers.Timer

Открытые методы

Метод Описание
CreatedChangedDeletedFileSystemEventHandler ( ISyncEventQueue queue, IMetaDataStorage storage, IFileSystemInfoFactory fsFactory = null, long threshold = 100 ) : System

Initializes a new instance of the CreatedChangedDeletedFileSystemEventHandler class.

Dispose ( ) : void

Releases all resource used by the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler object.

Call Dispose when you are finished using the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler. The Dispose method leaves the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler in an unusable state. After calling Dispose, you must release all references to the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler so the garbage collector can reclaim the memory that the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler was occupying.

Handle ( object source, FileSystemEventArgs e ) : void

Raises the created/changed/deleted event as FSEvent.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Dispose the internal timer.

Приватные методы

Метод Описание
AddEventToList ( FileSystemEventArgs args, System.Guid guid, bool isDirectory ) : void
PopEventsFromList ( ) : void
ResetTimerInterval ( ) : void

Описание методов

CreatedChangedDeletedFileSystemEventHandler() публичный Метод

Initializes a new instance of the CreatedChangedDeletedFileSystemEventHandler class.
public CreatedChangedDeletedFileSystemEventHandler ( ISyncEventQueue queue, IMetaDataStorage storage, IFileSystemInfoFactory fsFactory = null, long threshold = 100 ) : System
queue ISyncEventQueue Sync event queue.
storage IMetaDataStorage Meta data storage.
fsFactory IFileSystemInfoFactory File system info factory.
threshold long Delay after which a deleted event is passed to the queue.
Результат System

Dispose() публичный Метод

Releases all resource used by the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler object.
Call Dispose when you are finished using the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler. The Dispose method leaves the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler in an unusable state. After calling Dispose, you must release all references to the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler so the garbage collector can reclaim the memory that the CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler was occupying.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Dispose the internal timer.
protected Dispose ( bool disposing ) : void
disposing bool If set to true disposing.
Результат void

Handle() публичный Метод

Raises the created/changed/deleted event as FSEvent.
public Handle ( object source, FileSystemEventArgs e ) : void
source object /// Source file system watcher. ///
e System.IO.FileSystemEventArgs /// Reported changes. ///
Результат void

Описание свойств

timer защищенное свойство

The timer. Exposed to allow testability
protected Timer,System.Timers timer
Результат System.Timers.Timer