FileWatcher Constructor
Definition
FileWatcher(string, bool, Action<WatcherOptions>)
Initializes a new instance of the FileWatcher class.
public FileWatcher(string path, bool readFile = false, Action<WatcherOptions> setup = null)
Parameters
pathstringThe file to monitor, in standard or Universal Naming Convention (UNC) notation.
readFileboolif set to
truethe file specified inpathwill be opened and a checksum will be computed using CyclicRedundancyCheck64 algorithm.setupAction<WatcherOptions>The WatcherOptions which may be configured.