public void Stop() { // TODO: thread safety _stop = true; _listener.Stop(); _listener.Close(); _handler.Dispose(); //_listener = null; }
public void Stop() { // TODO: thread safety _stop = true; _listener?.Stop(); _listener?.Close(); _handler?.Dispose(); _listener = null; SetStatus(HttpAsyncHostStatus.Initialised); }