public void Clear()
 {
     listener.CheckDisposed();
     prefixes.Clear();
     if (listener.IsListening)
     {
         HttpEndPointManager.RemoveListener(_logger, listener);
     }
 }
Example #2
0
 void Close(bool force)
 {
     CheckDisposed();
     HttpEndPointManager.RemoveListener(_logger, this);
     Cleanup(force);
 }