Esempio n. 1
0
        public async Task <IList <string> > ResolvePages(Guid accountId)
        {
            if (accountId.IsEmpty())
            {
                return(new List <string>());
            }

            var key = $"{CacheKeys.ACCOUNT_PAGES}{accountId}";

            if (!_cache.TryGetValue(key, out IList <string> list))
            {
                list = await _rolePageRepository.QueryPageCodesByAccount(accountId);

                await _cache.SetAsync(key, list);
            }

            return(list);
        }