Beispiel #1
0
 public CacheService(
     ICacheEntryRepository cacheEntryRepository,
     INow now)
 {
     if (now == null)
     {
         throw new ArgumentNullException(nameof(now), $"{nameof(now)} is null.");
     }
     if (cacheEntryRepository == null)
     {
         throw new ArgumentNullException(nameof(cacheEntryRepository));
     }
     _cacheEntryRepository = cacheEntryRepository;
     _now = now;
 }
Beispiel #2
0
 public DistributedCache(ICacheEntryRepository repo)
 {
     this.repo = repo;
 }