public static async Task RemoveEntry(CacheUser user)
        {
            var cache = await GetCache(user);

            await RemoveEntry(cache);
        }
        public static async Task <PerWebUserCache> GetCache(CacheUser user)
        {
            var res = await DocDBRepo.DB <PerWebUserCache> .GetItemsAsync(u => u.WebUserUniqueId == user.UserObjId && u.HostName == user.HostName).ConfigureAwait(false);

            return(res.SingleOrDefault());
        }
 public static async Task <IEnumerable <PerWebUserCache> > GetAllEntries(CacheUser user)
 {
     return(await DocDBRepo.DB <PerWebUserCache> .GetItemsAsync(u => u.WebUserUniqueId == user.UserObjId && u.HostName == user.HostName).ConfigureAwait(false));
 }
 public AdalCosmosTokenCache(CacheUser user) : this(user.UserObjId, user.HostName)
 {
 }