private void AssertNotStarted() { if (IsStarted()) { throw new InvalidOperationException("Operation cannot be performed " + "while server is running"); } }