public void RestartServer() { _theClientList.Clear(); _logSystem.Clear(); _logSystem.Info("Restarting server ..."); asyncRestartServer(); }
public void Reconnect() { IMqttClientOptions theOpt = _ClientConfiguration.Build(); _logSystem.Clear(); asyncReconnect(); _logSystem.Info(String.Format("Start connection to '{0}:{1}' ...", _MQTTHostAndPort.Host, _MQTTHostAndPort.Port.ToString())); _logSystem.Info((theOpt.Credentials != null ? "Username : '******', " : "") + "Client ID : " + theOpt.ClientId); }