예제 #1
0
        public void Shutdown()
        {
            lock (_lock)
            {
                if (_shutdowndone == true)
                {
                    return;
                }

                InternalSave();
                if (_deleted != null)
                {
                    _deleted.SaveIndex();
                    _deleted.Shutdown();
                    _deleted = null;
                }

                if (_bitmaps != null)
                {
                    _bitmaps.Commit(Global.FreeBitmapMemoryOnSave);
                    _bitmaps.Shutdown();
                    _bitmaps = null;
                }

                if (_docMode)
                {
                    _docs.Shutdown();
                }

                _shutdowndone = true;
            }
        }
예제 #2
0
        public void Shutdown()
        {
            lock (_shutdownlock)
            {
                if (_index != null)
                {
                    log.Debug("Shutting down");
                }
                else
                {
                    return;
                }
                SaveIndex();
                SaveLastRecord();

                if (_deleted != null)
                {
                    _deleted.Shutdown();
                }
                if (_index != null)
                {
                    _index.Shutdown();
                }
                if (_archive != null)
                {
                    _archive.Shutdown();
                }
                _index   = null;
                _archive = null;
                _deleted = null;
                log.Debug("Shutting down log");
                LogManager.Shutdown();
            }
        }
예제 #3
0
        /// <summary>
        /// Shut down the KeyStorage Indexer
        /// </summary>
        public void Shutdown()
        {
            lock (_shutdownlock)
            {
                if (_index != null)
                {
                    log.Debug("Shutting down");

                    _savetimer.Enabled = false;
                    SaveIndex();
                    SaveLastRecord();

                    if (_deleted != null)
                    {
                        _deleted.Shutdown();
                    }

                    if (_index != null)
                    {
                        _index.Shutdown();
                    }

                    if (_archive != null)
                    {
                        _archive.Shutdown();
                    }

                    _index   = null;
                    _archive = null;
                    _deleted = null;
                }
            }
        }
예제 #4
0
        public void Shutdown()
        {
            lock (_lock)
            {
                InternalSave();

                if (_docMode)
                {
                    _docs.Shutdown();
                    _deleted.Shutdown();
                }
            }
        }