예제 #1
0
 public DistributedCacheManagerHttpContext(
     IDistributedCache distributedCache,
     DistributedCacheEntryOptions distributedCacheEntryOptions,
     IHttpContextAccessor httpContextAccessor,
     IDistributedCacheKeyPrefix distributedCacheKeyPrefix = null)
     : base(distributedCache, distributedCacheEntryOptions, distributedCacheKeyPrefix)
 {
     _httpContextAccessor = httpContextAccessor;
 }
예제 #2
0
 public DistributedCacheManager(
     IDistributedCache distributedCache,
     DistributedCacheEntryOptions distributedCacheEntryOptions,
     IDistributedCacheKeyPrefix distributedCacheKeyPrefix = null)
 {
     _distributedCache             = distributedCache;
     _distributedCacheEntryOptions = distributedCacheEntryOptions;
     if (distributedCacheKeyPrefix == null)
     {
         _distributedCacheKeyPrefix = new DistributedCacheKeyPrefix();
     }
     else
     {
         _distributedCacheKeyPrefix = distributedCacheKeyPrefix;
     }
 }