private void StartMonitoring()
 {
     if (this._dirMonCompletion == null)
     {
         this._dirMonCompletion = new DirMonCompletion(this, this.Directory, this._watchSubtree, this._notifyFilter);
     }
 }
 void IDisposable.Dispose()
 {
     if (this._dirMonCompletion != null)
     {
         ((IDisposable)this._dirMonCompletion).Dispose();
         this._dirMonCompletion = null;
     }
     if (this._anyFileMon != null)
     {
         HttpRuntime.FileChangesMonitor.RemoveAliases(this._anyFileMon);
         this._anyFileMon = null;
     }
     foreach (DictionaryEntry entry in this._fileMons)
     {
         string      key     = (string)entry.Key;
         FileMonitor fileMon = (FileMonitor)entry.Value;
         if (fileMon.FileNameLong == key)
         {
             HttpRuntime.FileChangesMonitor.RemoveAliases(fileMon);
         }
     }
     this._fileMons.Clear();
     this._cShortNames = 0;
 }
 void IDisposable.Dispose()
 {
     if (this._dirMonCompletion != null)
     {
         ((IDisposable) this._dirMonCompletion).Dispose();
         this._dirMonCompletion = null;
     }
     if (this._anyFileMon != null)
     {
         HttpRuntime.FileChangesMonitor.RemoveAliases(this._anyFileMon);
         this._anyFileMon = null;
     }
     foreach (DictionaryEntry entry in this._fileMons)
     {
         string key = (string) entry.Key;
         FileMonitor fileMon = (FileMonitor) entry.Value;
         if (fileMon.FileNameLong == key)
         {
             HttpRuntime.FileChangesMonitor.RemoveAliases(fileMon);
         }
     }
     this._fileMons.Clear();
     this._cShortNames = 0;
 }
 private void StartMonitoring()
 {
     if (this._dirMonCompletion == null)
     {
         this._dirMonCompletion = new DirMonCompletion(this, this.Directory, this._watchSubtree, this._notifyFilter);
     }
 }