Ejemplo n.º 1
0
        public void Dispose()
        {
            if (_wasDisposed)
            {
                return;
            }

            DisposeResourcesWhoseDisposalCannotFail();

            _queueStorage.Dispose();

            // only after we finish incoming recieves, and finish processing
            // active transactions can we mark it as disposed
            _wasDisposed = true;
        }