IFileSystemWatchOperations
Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0
Provides the watch operations of a FileSystem.
public interface IFileSystemWatchOperationsMethods
Section titled “Methods”CreateDirectoryWatcher(DirectoryLink, bool, Func<IFileSystemLinkWatcher>)
Section titled “CreateDirectoryWatcher(DirectoryLink, bool, Func<IFileSystemLinkWatcher>)”Creates a directory watcher for the specified link to the directory and creating delegate.
public virtual IFileSystemLinkWatcher CreateDirectoryWatcher(DirectoryLink directory, bool recursive, Func<IFileSystemLinkWatcher> localWatcherCreator)Parameters
Section titled “Parameters”directoryDirectoryLink
The handle for the directory being watched.recursivebool
trueto watch the current directory, all its subdirectories; otherwise,false.localWatcherCreatorFunc<IFileSystemLinkWatcher>
A delegate creating a IFileSystemLinkWatcher object.
Returns
Section titled “Returns”A IFileSystemLinkWatcher object for listening to a directory change notifications and raises events when a directory changes.
CreateFileWatcher(FileLink, Func<IFileSystemLinkWatcher>)
Section titled “CreateFileWatcher(FileLink, Func<IFileSystemLinkWatcher>)”Creates a file watcher for the specified link to the file and creating delegate.
public virtual IFileSystemLinkWatcher CreateFileWatcher(FileLink file, Func<IFileSystemLinkWatcher> localWatcherCreator)Parameters
Section titled “Parameters”fileFileLink
The handle for the file being watched.localWatcherCreatorFunc<IFileSystemLinkWatcher>
A delegate creating a IFileSystemLinkWatcher object.
Returns
Section titled “Returns”A IFileSystemLinkWatcher object for listening to a file change notifications and raises events when a file changes.