C# 클래스 CmisSync.Lib.Producer.Watcher.CreatedChangedDeletedFileSystemEventHandler

Created/Changed/Deleted file system events handler to report the events to the given queue.
상속: IDisposable
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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