Ejemplo n.º 1
0
        public DistributedCacheProviderTests()
        {
            var options = new OptionsWrapper <MemoryDistributedCacheOptions>(new MemoryDistributedCacheOptions());

            _memoryDistributedCache   = new MemoryDistributedCache(options);
            _distributedCacheProvider = new DistributedCacheProvider(_memoryDistributedCache);
        }
Ejemplo n.º 2
0
 public DistributedCacheProviderTests()
 {
     _memoryDistributedCache   = new MemoryDistributedCache(new MemoryCache(new MemoryCacheOptions()));
     _distributedCacheProvider = new DistributedCacheProvider(_memoryDistributedCache);
 }