Exemplo n.º 1
0
 public override void Dispose()
 {
     if (this.IsUntitled)
     {
         ParserService.ClearParseInformation(this.UntitledName);
     }
     watcher.Dispose();
     textAreaControl.Dispose();
     base.Dispose();
 }
Exemplo n.º 2
0
        /// <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);
            }
        }
Exemplo n.º 3
0
 public void Dispose()
 {
     _watcher.Dispose();
 }
Exemplo n.º 4
0
 public void Dispose()
 {
     _watcher.Dispose();
     _watcherAssets.Dispose();
 }
 public void Dispose()
 {
     Console.WriteLine("Shutting down the AppDomain file watcher");
     _watcher.Dispose();
 }
Exemplo n.º 6
0
 public void Dispose()
 {
     StopWatching();
     _watcher.Dispose();
 }
Exemplo n.º 7
0
 public void FixtureTearDown()
 {
     _watcher?.Dispose();
     _writer?.Dispose();
     Directory.Delete(TestDirectory, true);
 }