Exemplo n.º 1
0
        public static byte[] CreateHeartBeat(string projectId, string gatewayId)
        {
            string xml = MessageParser.Serialize(MessageFactory.CreateHeartbeatMessage(projectId, gatewayId));

            return(Monitor.Common.PacketHelper.Encode(xml));
        }
Exemplo n.º 2
0
        public static byte[] CreateAuthentication(string projectId, string gatewayId, string sequence)
        {
            string xml = MessageParser.Serialize(MessageFactory.CreateAuthenticationMessage(projectId, gatewayId, sequence));

            return(Monitor.Common.PacketHelper.Encode(xml));
        }