IFileSystemWatchOperations
Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll
Provides a watch operations mechanism for TagBites.IO.FileSystem.
public abstract interface IFileSystemWatchOperations
Methods
CreateDirectoryWatcher(DirectoryLink, bool, Func<IFileSystemLinkWatcher>)
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
Type | Name | |
---|---|---|
DirectoryLink | directory | The handle for the directory being watched. |
bool | recursive | to watch the current directory, all its subdirectories; otherwise, . |
Func<IFileSystemLinkWatcher> | localWatcherCreator | A delegate creating a object. |
CreateFileWatcher(FileLink, Func<IFileSystemLinkWatcher>)
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
Type | Name | |
---|---|---|
FileLink | file | The handle for the file being watched. |
Func<IFileSystemLinkWatcher> | localWatcherCreator | A delegate creating a object. |