예제 #1
0
        /// <summary>
        /// 发送单聊消息测试
        /// </summary>
        void GetP2PHistoryMessage()
        {
            if (!user5566.IsOnline())
            {
                logger.DebugFormat("{0} login fail, quit!", user5566.AppAccount);
                return;
            }
            if (!user9527.IsOnline())
            {
                logger.DebugFormat("{0} login fail, quit!", user9527.AppAccount);
                return;
            }

            String data = user5566.GetP2PHistory(user9527.AppAccount, user5566.AppAccount, 0, DateTime.Now.Millisecond, null, null);

            logger.InfoFormat("GetP2PHistoryMessage, {0}-->{1}, PacketId:{2}", user5566.AppAccount, user9527.AppAccount, data);
            Thread.Sleep(100);
        }