Beispiel #1
0
        /// <summary>
        /// 复制新的授权信息实体
        /// </summary>
        /// <returns></returns>
        public AppAuthorizeInfo Copy()
        {
            var newOne = new AppAuthorizeInfo
            {
                AppClient  = this.AppClient,
                AppSource  = this.AppSource,
                AppVersion = this.AppVersion,
                DeviceId   = this.DeviceId,
                IpAddress  = this.IpAddress,

                OTag     = this.OTag,
                Sign     = this.Sign,
                TenantId = this.TenantId,
                TimeSpan = this.TimeSpan,

                Token       = this.Token,
                WebBrowser  = this.WebBrowser,
                Extra       = this.Extra,
                TenantToken = this.TenantToken,
                AppType     = this.AppType
            };


            return(newOne);
        }
Beispiel #2
0
        /// <summary>
        /// 复制新的授权信息实体
        /// </summary>
        /// <returns></returns>
        public AppAuthorizeInfo Copy()
        {
            var newOne = new AppAuthorizeInfo
            {
                AppClient  = this.AppClient,
                AppSource  = this.AppSource,
                AppVersion = this.AppVersion,
                DeviceId   = this.DeviceId,
                IpAddress  = this.IpAddress,

                TenantId   = this.TenantId,
                Sign       = this.Sign,
                TimeSpan   = this.TimeSpan,
                Token      = this.Token,
                WebBrowser = this.WebBrowser,

                ProCode = this.ProCode
            };


            return(newOne);
        }
Beispiel #3
0
        /// <summary>
        /// 复制新的授权信息实体
        /// </summary>
        /// <returns></returns>
        public AppAuthorizeInfo Copy()
        {
            var newOne = new AppAuthorizeInfo
            {
                AppClient  = this.AppClient,
                AppSource  = this.AppSource,
                AppVersion = this.AppVersion,
                DeviceId   = this.DeviceId,
                IpAddress  = this.IpAddress,

                Sign     = this.Sign,
                TenantId = this.TenantId,
                TimeSpan = this.TimeSpan,
                Token    = this.Token,
                TraceNum = this.TraceNum,

                AppType = this.AppType
            };


            return(newOne);
        }
Beispiel #4
0
 /// <summary>
 ///   设置应用授权信息
 /// </summary>
 /// <param name="info"></param>
 public static void SetAppAuthrizeInfo(AppAuthorizeInfo info)
 {
     _appAuthorize.Value = info;
 }