public override void Dispose() { if (this.IsUntitled) { ParserService.ClearParseInformation(this.UntitledName); } watcher.Dispose(); textAreaControl.Dispose(); base.Dispose(); }
/// <summary> /// Query sub-system for basic properties if this file is supposed to exist in persistence. /// </summary> private void QueryFileProperies() { try { if (IsReal) { FileInfo f = new FileInfo(FileNamePath); IsReadonly = f.IsReadOnly; if (_mFileChangeWatcher != null) { _mFileChangeWatcher.Dispose(); _mFileChangeWatcher = null; } _mFileChangeWatcher = new FileChangeWatcher(this); } } catch (Exception exp) { throw new Exception("Error in QueryFileProperies", exp); } }
public void Dispose() { _watcher.Dispose(); }
public void Dispose() { _watcher.Dispose(); _watcherAssets.Dispose(); }
public void Dispose() { Console.WriteLine("Shutting down the AppDomain file watcher"); _watcher.Dispose(); }
public void Dispose() { StopWatching(); _watcher.Dispose(); }
public void FixtureTearDown() { _watcher?.Dispose(); _writer?.Dispose(); Directory.Delete(TestDirectory, true); }