Esempio n. 1
0
        public static UserLoginServerTicketDTO GetUserTicket(string userTokenStr)
        {
            var CacheKey = new XuHos.Common.Cache.Keys.EntityCacheKey <UserLoginServerTicketDTO>(XuHos.Common.Cache.Keys.StringCacheKeyType.User_Ticket, userTokenStr);
            var ticket   = CacheKey.FromCache();

            if (ticket != null)
            {
                return(ticket);
            }
            else
            {
                return(default(UserLoginServerTicketDTO));
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 获取验证通过的接入端信息
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public static XuHos.BLL.Common.DTOs.Response.ResponseToken GetAppToken(string apptoken)
        {
            var CacheKey = new XuHos.Common.Cache.Keys.EntityCacheKey <XuHos.BLL.Common.DTOs.Response.ResponseToken>(XuHos.Common.Cache.Keys.StringCacheKeyType.API_apptoken, apptoken);

            return(CacheKey.FromCache());
        }