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);
        }
Beispiel #2
0
 private void RemovePrefixCore(string uriPrefix) => HttpEndPointManager.RemovePrefix(uriPrefix, this);