コード例 #1
0
ファイル: MessageFactory.cs プロジェクト: irengine/monitor
        public static byte[] CreateHeartBeat(string projectId, string gatewayId)
        {
            string xml = MessageParser.Serialize(MessageFactory.CreateHeartbeatMessage(projectId, gatewayId));

            return(Monitor.Common.PacketHelper.Encode(xml));
        }
コード例 #2
0
ファイル: MessageFactory.cs プロジェクト: irengine/monitor
        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));
        }