示例#1
0
        /// <summary>
        /// 复制新的授权信息实体
        /// </summary>
        /// <returns></returns>
        public SysAuthorizeInfo Copy()
        {
            var newOne = new SysAuthorizeInfo();

            newOne.AppClient  = this.AppClient;
            newOne.AppSource  = this.AppSource;
            newOne.AppVersion = this.AppVersion;
            newOne.DeviceId   = this.DeviceId;
            newOne.IpAddress  = this.IpAddress;

            newOne.OriginAppSource = this.OriginAppSource;
            newOne.Sign            = this.Sign;
            newOne.TimeSpan        = this.TimeSpan;
            newOne.Token           = this.Token;
            newOne.WebBrowser      = this.WebBrowser;
            return(newOne);
        }
示例#2
0
        /// <summary>
        /// 复制新的授权信息实体
        /// </summary>
        /// <returns></returns>
        public SysAuthorizeInfo Copy()
        {
            var newOne = new SysAuthorizeInfo
            {
                AppClient  = this.AppClient,
                AppSource  = this.AppSource,
                AppVersion = this.AppVersion,
                DeviceId   = this.DeviceId,
                IpAddress  = this.IpAddress,

                OriginAppSource = this.OriginAppSource,
                Sign            = this.Sign,
                TimeSpan        = this.TimeSpan,
                Token           = this.Token,
                WebBrowser      = this.WebBrowser
            };


            return(newOne);
        }
示例#3
0
 /// <summary>
 ///   设置应用授权信息
 /// </summary>
 /// <param name="info"></param>
 public static void SetAppAuthrizeInfo(SysAuthorizeInfo info)
 {
     _appAuthorize = info;
 }