Exemplo n.º 1
0
        private void BuildAndSendMessage(MessageElement messageElement)
        {
            UECPFrame uecpFrame = new UECPFrame();

            uecpFrame.MessageElements.Add(messageElement);

            _endpoint.SendData(uecpFrame.GetBytes());
        }
Exemplo n.º 2
0
        private void BuildAndSendMessage(MessageElement messageElement)
        {
            UECPFrame uecpFrame = new UECPFrame();

            uecpFrame.MessageElements.Add(messageElement);
            //We have to check which constructor is used (TCP or UDP)
            if (consCheck == "UDP")
            {
                _endpoint.SendData(uecpFrame.GetBytes());
            }
            else if (consCheck == "TCP")
            {
                _TCPendpoint.SendData(uecpFrame.GetBytes());
            }
            //We have to check which constructor is used (TCP or UDP)
        }