IFileSystemWatchOperations

Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll

Provides a watch operations mechanism for TagBites.IO.FileSystem.

public abstract interface IFileSystemWatchOperations

Methods

Creates a directory watcher for specified link to the directory and creating delegate.

public IFileSystemLinkWatcher CreateDirectoryWatcher(DirectoryLink directory, bool recursive, Func<IFileSystemLinkWatcher> localWatcherCreator)

Result Type: IFileSystemLinkWatcher

Parameters

TypeName
DirectoryLinkdirectoryThe handle for the directory being watched.
boolrecursiveto watch the current directory, all its subdirectories; otherwise, .
Func<IFileSystemLinkWatcher>localWatcherCreatorA delegate creating a object.

Creates a file watcher for specified link to the file and creating delegate.

public IFileSystemLinkWatcher CreateFileWatcher(FileLink file, Func<IFileSystemLinkWatcher> localWatcherCreator)

Result Type: IFileSystemLinkWatcher

Parameters

TypeName
FileLinkfileThe handle for the file being watched.
Func<IFileSystemLinkWatcher>localWatcherCreatorA delegate creating a object.