/// <inheritdoc /> protected virtual void Dispose(bool disposing) { if (disposing) { if (FileSystemWatcherInstance != null) { FileSystemWatcherInstance.Dispose(); FileSystemWatcherInstance = null; } // get rid of managed resources } // get rid of unmanaged resources }
/// <summary> /// A synchronous /// method that returns a structure that contains specific information on the change that occurred, given the /// type of change that you wish to monitor and the time (in milliseconds) to wait before timing out. /// </summary> public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, int timeout) { return(FileSystemWatcherInstance.WaitForChanged(changeType, timeout)); }
/// <summary> /// /// Notifies the object that initialization is complete. /// /// </summary> public void EndInit() { FileSystemWatcherInstance.EndInit(); }
/// <summary> /// Notifies the object that initialization is beginning and tells it to standby. /// </summary> public void BeginInit() { FileSystemWatcherInstance.BeginInit(); }