Beispiel #1
0
        /// <summary>
        /// MPManager
        /// </summary>
        /// <param name="userName">公众账号登录用户名</param>
        /// <param name="pwdMd5">公众账号登录密码MD5值</param>
        private MpManager(string userName, string pwdMd5)
        {
            if (string.IsNullOrWhiteSpace(userName))
                throw new ArgumentNullException("userName");

            if (string.IsNullOrWhiteSpace(pwdMd5))
                throw new ArgumentNullException("pwdMd5");

            _userName = userName;
            _pwdMd5 = pwdMd5;
            _loginContext = new MpLoginContext();
        }
Beispiel #2
0
        /// <summary>
        /// MPManager
        /// </summary>
        /// <param name="userName">公众账号登录用户名</param>
        /// <param name="pwdMd5">公众账号登录密码MD5值</param>
        private MpManager(string userName, string pwdMd5)
        {
            if (string.IsNullOrWhiteSpace(userName))
            {
                throw new ArgumentNullException("userName");
            }

            if (string.IsNullOrWhiteSpace(pwdMd5))
            {
                throw new ArgumentNullException("pwdMd5");
            }

            _userName     = userName;
            _pwdMd5       = pwdMd5;
            _loginContext = new MpLoginContext();
        }
Beispiel #3
0
        /// <summary>
        /// MPManager
        /// </summary>
        /// <param name="mpAccount">公众账号登录用户名</param>
        /// <param name="mpPasswordMd5">公众账号登录密码MD5值</param>
        private MpManager(string mpAccount, string mpPasswordMd5)
        {
            if (string.IsNullOrWhiteSpace(mpAccount))
            {
                throw new ArgumentNullException("mpAccount");
            }

            if (string.IsNullOrWhiteSpace(mpPasswordMd5))
            {
                throw new ArgumentNullException("mpPasswordMd5");
            }

            _mpAccount     = mpAccount;
            _mpPasswordMd5 = mpPasswordMd5;
            _loginContext  = new MpLoginContext();
        }