Exemple #1
0
        public async Task <HUser> GetUserAsync(string name, HHotel hotel)
        {
            if (!_userCache.ContainsKey(hotel))
            {
                _userCache[hotel] = new Dictionary <string, HUser>();
            }
            if (!_userCache[hotel].ContainsKey(name))
            {
                HUser profile = await SKore.GetUserAsync(name, hotel).ConfigureAwait(false);

                _userCache[hotel][name] = profile;
            }
            return(_userCache[hotel][name]);
        }