/// <summary>
        /// 直接传入IRequestMessageBase,For UnitTest
        /// </summary>
        /// <param name="postModel">PostModel</param>
        /// <param name="maxRecordCount">单个用户上下文消息列表储存的最大长度</param>
        /// <param name="developerInfo">微微嗨开发者信息,如果不为空,则优先请求云端应用商店的资源</param>
        /// <param name="requestMessageBase"></param>
        public MessageHandler(RequestMessageBase requestMessageBase, PostModel postModel = null, int maxRecordCount = 0)
            : base(requestMessageBase, maxRecordCount, postModel)
        {
            var postDataDocument = requestMessageBase.ConvertEntityToXml();

            base.CommonInitialize(postDataDocument, maxRecordCount, postModel);
        }
示例#2
0
        /// <summary>
        /// 直接传入IRequestMessageBase,For UnitTest
        /// </summary>
        /// <param name="postModel">PostModel</param>
        /// <param name="maxRecordCount">单个用户上下文消息列表储存的最大长度</param>
        /// <param name="developerInfo">微微嗨开发者信息,如果不为空,则优先请求云端应用商店的资源</param>
        /// <param name="requestMessageBase"></param>
        public MessageHandler(RequestMessageBase requestMessageBase, PostModel postModel = null, int maxRecordCount = 0, DeveloperInfo developerInfo = null, bool isDebug = false)
            : base(requestMessageBase, maxRecordCount, postModel, isDebug)
        {
            DeveloperInfo = developerInfo;

            var postDataDocument = requestMessageBase.ConvertEntityToXml();

            base.CommonInitialize(postDataDocument, maxRecordCount, postModel);
        }
示例#3
0
        /// <summary>
        /// 直接传入IRequestMessageBase,For UnitTest
        /// </summary>
        /// <param name="postModel">PostModel</param>
        /// <param name="maxRecordCount">单个用户上下文消息列表储存的最大长度</param>
        /// <param name="developerInfo">微微嗨开发者信息,如果不为空,则优先请求云端应用商店的资源</param>
        /// <param name="requestMessageBase"></param>
        public MessageHandler(RequestMessageBase requestMessageBase, PostModel postModel, int maxRecordCount = 0, DeveloperInfo developerInfo = null)
            : base(requestMessageBase, postModel, maxRecordCount)
        {
            DeveloperInfo = developerInfo;
            postModel     = postModel ?? new PostModel();

            var postDataDocument = requestMessageBase.ConvertEntityToXml();

            base.CommonInitialize(postDataDocument, maxRecordCount, postModel);
        }