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

Implementation of a Mac OS specific 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.

MacWatcher ( string pathname, ISyncEventQueue queue ) : System

Initializes a new instance of the CmisSync.Lib.Sync.Strategy.MacWatcher class. The default latency is set to 1 second.

MacWatcher ( string pathname, ISyncEventQueue queue, System.TimeSpan latency ) : System

Initializes a new instance of the CmisSync.Lib.Sync.Strategy.MacWatcher class.

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

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

Dispose the FsStream.

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

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

Cleans the last rename event. If no corresponding second rename event has been found yet, the rename has been a sign for a deletion.

FileOrDirectoryExists ( string path, bool isFile ) : bool
OnFSEventStreamEvents ( object sender, FSEventStreamEventsArgs e ) : void

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

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 FsStream.
protected Dispose ( bool disposing ) : void
disposing bool If set to true disposing.
Результат void

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

Initializes a new instance of the CmisSync.Lib.Sync.Strategy.MacWatcher class. The default latency is set to 1 second.
public MacWatcher ( string pathname, ISyncEventQueue queue ) : System
pathname string Path to be monitored.
queue ISyncEventQueue Queue to pass the new events to.
Результат System

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

Initializes a new instance of the CmisSync.Lib.Sync.Strategy.MacWatcher class.
public MacWatcher ( string pathname, ISyncEventQueue queue, System.TimeSpan latency ) : System
pathname string Path to be monitored.
queue ISyncEventQueue Queue to pass the new events to.
latency System.TimeSpan Maximum latency for file system events.
Результат System