示例#1
0
        public async Task Stop()
        {
            _externalAddress  = string.Empty;
            _isRunning        = false;
            _clientsConnected = 0;
            _server.Close();

            await _listenTask;
            await _updateTask;

            _status = "Stopped";
        }