コード例 #1
0
ファイル: MainForm.cs プロジェクト: Maczuga/win-mqtt-client
        public void ReloadApp()
        {
            var wasConnected = MqttConnection.IsConnected;

            MqttConnection.Connect();

            // Reinitialize workers only if client was connected to the server before
            if (wasConnected)
            {
                MqttConnection.InitializeWorkers();
            }
        }