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