/// <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
 }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 ///       Notifies the object that initialization is complete.
 ///
 /// </summary>
 public void EndInit()
 {
     FileSystemWatcherInstance.EndInit();
 }
Exemplo n.º 4
0
 /// <summary>
 ///    Notifies the object that initialization is beginning and tells it to standby.
 /// </summary>
 public void BeginInit()
 {
     FileSystemWatcherInstance.BeginInit();
 }