private void AssertNotDisposedOrDisposing() { if (disposing || wasDisposed) throw new ObjectDisposedException("QueueManager"); }