Ejemplo n.º 1
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                // get rid of managed resources
                _fileSystemParser.Dispose();
                _fileSystemListener.Dispose();
                _asyncFileSystemParser.Dispose();
            }

            // get rid of unmanaged resources
            try
            {
                lock (_cacheSync)
                {
                    SerializeChanges();
                }
            }
            catch
            {
                // no exceptions in finalizer
            }
        }
 public void Dispose()
 {
     _fileSystemParser.Dispose();
 }