public void publishParams() { string sMsg = m_sLogicID; string sName = ""; for (int i = 0; i < m_params.getCount(); i++) { sName = m_params.getName(i); sMsg += "@"; sMsg += sName; sMsg += ","; sMsg += m_params.getVal_string(sName); } //Add System name sMsg += "@"; sMsg += "system_name,"; sMsg += CFATManager.getSystemName(); CMQClient.publish_msg(sMsg, CFATCommon.MQ_TOPIC_PARAM_C2V); }
public static void config_logicParam_down(EasyNetQ.FluentConfiguration.ISubscriptionConfiguration subConfig) { subConfig.WithTopic(CFATCommon.MQ_TOPIC_PARAM_V2C + ":" + CFATManager.getSystemName()); subConfig.WithExpires(1000 * 60 * 10); subConfig.WithDurable(false); }