private void BuildAndSendMessage(MessageElement messageElement) { UECPFrame uecpFrame = new UECPFrame(); uecpFrame.MessageElements.Add(messageElement); _endpoint.SendData(uecpFrame.GetBytes()); }
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) }