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

.Net file system watcher.
Наследование: IWatcherProducer
Показать файл Открыть проект Примеры использования класса

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

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

Releases all resource used by the CmisSync.Lib.Sync.Strategy.WatcherConsumer object.

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

NetWatcher ( FileSystemWatcher watcher, ISyncEventQueue queue, IMetaDataStorage storage, FileSystemInfoFactory fsFactory = null ) : System

Initializes a new instance of the NetWatcher class. Takes the given file system watcher and listens for events and passes them to the given queue

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

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

Dispose the .Net File System Watcher.

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

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

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

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

Dispose the .Net File System Watcher.
protected Dispose ( bool disposing ) : void
disposing bool If set to true disposing.
Результат void

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

Initializes a new instance of the NetWatcher class. Takes the given file system watcher and listens for events and passes them to the given queue
public NetWatcher ( FileSystemWatcher watcher, ISyncEventQueue queue, IMetaDataStorage storage, FileSystemInfoFactory fsFactory = null ) : System
watcher System.IO.FileSystemWatcher File System Watcher.
queue ISyncEventQueue Queue for the occured events.
storage IMetaDataStorage Meta Data Storage to verify, if a deleted object is a file or folder.
fsFactory CmisSync.Lib.Storage.FileSystem.FileSystemInfoFactory File system info factory. If factory is null, the normal file system is used, otherwise the given factory.
Результат System