/// <summary> /// Send an ANP message to a KAS. /// </summary> public void SendAnpMsgToKcm(TcmAnpMsg m) { lock (m_mutex) { m_ToKcmAnpMsgArray.Add(m); NotifyTcm(); } }
/// <summary> /// Process an ANP message received from the WM. /// </summary> private void ProcessWmAnpMsg(TcmAnpMsg msg) { // Ignore messages not destined to connected KASes. if (!m_kasTree.ContainsKey(msg.KasID)) { return; } TbxAppServer kas = m_kasTree[msg.KasID]; if (kas.ConnStatus != TcmAppServerConStatus.Connected) { return; } // Enqueue the message. kas.SendQueue.Enqueue(msg.Msg); }