Esempio n. 1
0
 public ParentCacheHandle(
     ICacheManagerConfiguration managerConfiguration,
     CacheHandleConfiguration configuration,
     ILoggerFactory loggerFactory,
     ParentCache <TCacheValue> parentCache)
     : base(managerConfiguration, configuration)
 {
     _parent = parentCache;
     Logger  = loggerFactory.CreateLogger(this);
 }
Esempio n. 2
0
 public static ConfigurationBuilderCacheHandlePart WithParentCache <TCacheValue>(this ConfigurationBuilderCachePart config, ParentCache <TCacheValue> parent)
 => config.WithHandle(typeof(ParentCacheHandle <>), "PraentCache", false, parent);