private void AssertNotDisposed() { if (wasDisposed) throw new ObjectDisposedException("QueueManager"); }