public void EnableEndpointPortAutoSelection() { if (wasStarted) throw new InvalidOperationException("Endpoint auto-port-selection cannot be enabled after the queue has been started."); enableEndpointPortAutoSelection = true; }