public AccountAuthorizeInfo GetAuthorize(TokenInfo info)
        {
            var result = cache.GetCache(UAER_PREFIX + "_" + info.Client + "_" + info.UserId);

            return(string.IsNullOrEmpty(result) ? null : JsonConvert.DeserializeObject <AccountAuthorizeInfo>(result));
        }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool CheckAuthorize(string id)
        {
            var data = cacheAgent.GetCache($"{USER_PREFIX}_{id}");

            return(!string.IsNullOrEmpty(data));
        }