public async Task Stop() { _externalAddress = string.Empty; _isRunning = false; _clientsConnected = 0; _server.Close(); await _listenTask; await _updateTask; _status = "Stopped"; }
public async Task Stop() { _externalAddress = string.Empty; _isRunning = false; _clientsConnected = 0; _server.Close(); await _listenTask; await _updateTask; _status = "Stopped"; }