Esempio n. 1
0
        private void ReceiveInsideMessage(SignalMessage message)
        {
            Delegate_ReceiveInsideMessage receiveMessage = null;

            switch (message.General_DestinationModule)
            {
            case "CC":
                receiveMessage = new Delegate_ReceiveInsideMessage(_moduleCC.ReceiveMessageFromPC);
                break;

            case "RC":
                receiveMessage = new Delegate_ReceiveInsideMessage(_moduleRC.ReceiveMessageFromPC);
                break;

            case "LRM":
                receiveMessage = new Delegate_ReceiveInsideMessage(_moduleLRM.ReceiveMessageFromPC);
                break;

            default:
                SignallingNodeDeviceClass.MakeSignallingLog("PC", "ERROR - Destination module unknown.");
                break;
            }

            if (receiveMessage != null)
            {
                receiveMessage.BeginInvoke(message, new AsyncCallback(ReceiveInsideMessageCallback), null);
            }
        }
Esempio n. 2
0
        private void SendInsideMessage(SignalMessage message)
        {
            Delegate_ReceiveInsideMessage receiveMessage = new Delegate_ReceiveInsideMessage(ReceiveInsideMessage);

            receiveMessage.BeginInvoke(message, new AsyncCallback(ReceiveInsideMessageCallback), null);
        }