示例#1
0
        /// <summary>
        /// Sends the settings and log.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="client">The client.</param>
        private void SendSettingsAndLog(object sender, IClientHandler client)
        {
            bool success;
            //genertate string (serialize to json of all settings from the appconfig)
            string setting = m_controller.ExecuteCommand((int)CommandEnum.GetConfigCommand, null, out success);

            client.SendCommand(setting);
            string log = m_controller.ExecuteCommand((int)CommandEnum.LogCommand, null, out success);

            client.SendCommand(log);
        }