示例#1
0
        protected virtual void Dispose(bool disposing)
        {
            if (_Disposed)
            {
                return;
            }

            Complete();

            if (disposing)
            {
                foreach (DbRocket rocket in _FreeQueue)
                {
                    rocket.Dispose();
                }

                _FreeQueue.Dispose();

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

                _ExecutingHandle.Dispose();
            }

            _Disposed = true;
        }
示例#2
0
        public void Dispose()
        {
            if (_Disposed == false)
            {
                Complete();

                foreach (DbRocket rocket in _FreeQueue)
                {
                    rocket.Dispose();
                }

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

                _ExecutingHandle.Dispose();

                _Disposed = true;
            }
        }