public void Clear() { _listener.CheckDisposed(); _prefixes.Clear(); if (_listener.IsListening) { HttpEndPointManager.RemoveListener(_listener); } }
private void Close(bool force) { CheckDisposed(); HttpEndPointManager.RemoveListener(this); Cleanup(force); }