예제 #1
0
        protected void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                if (_metaPageFactory != null)
                {
                    _metaPageFactory.Dispose();
                }

                if (_indexPageFactory != null)
                {
                    _indexPageFactory.Dispose();
                }

                if (_dataPageFactory != null)
                {
                    _dataPageFactory.Dispose();
                }
            }
            disposed = true;
        }
예제 #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _metaPageFactory?.Dispose();
         _indexPageFactory?.Dispose();
         _dataPageFactory?.Dispose();
     }
 }