예제 #1
0
        public async Task <bool> Add(TicketCacheEntry entry)
        {
            if (await Contains(entry))
            {
                return(false);
            }

            await cache.Add(entry);

            return(true);
        }
예제 #2
0
 public async Task <bool> Add(TicketCacheEntry entry)
 {
     return(await cache.Add(entry));
 }