public bool Remove(string uriPrefix) { _listener.CheckDisposed(); if (uriPrefix == null) { throw new ArgumentNullException(nameof(uriPrefix)); } bool result = _prefixes.Remove(uriPrefix); if (result && _listener.IsListening) { HttpEndPointManager.RemovePrefix(uriPrefix, _listener); } return(result); }
private void RemovePrefixCore(string uriPrefix) => HttpEndPointManager.RemovePrefix(uriPrefix, this);