Beispiel #1
0
        public DistributedCacheProviderTests()
        {
            var options = new OptionsWrapper <MemoryDistributedCacheOptions>(new MemoryDistributedCacheOptions());

            _memoryDistributedCache   = new MemoryDistributedCache(options);
            _distributedCacheProvider = new DistributedCacheProvider(_memoryDistributedCache);
        }
Beispiel #2
0
 public DistributedCacheProviderTests()
 {
     _memoryDistributedCache   = new MemoryDistributedCache(new MemoryCache(new MemoryCacheOptions()));
     _distributedCacheProvider = new DistributedCacheProvider(_memoryDistributedCache);
 }