public void Clear() { listener.CheckDisposed(); prefixes.Clear(); if (listener.IsListening) { EndPointManager.RemoveListener(listener); } }
private void Close(bool force) { CheckDisposed(); EndPointManager.RemoveListener(this); Cleanup(force); }