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; }
public void Dispose() { if (_Disposed == false) { Complete(); foreach (DbRocket rocket in _FreeQueue) { rocket.Dispose(); } if (_FillingRocket != null) { _FillingRocket.Dispose(); } _ExecutingHandle.Dispose(); _Disposed = true; } }