public MbCacheFactory(IProxyFactory proxyFactory, CacheAdapter cache, IDictionary <Type, ConfigurationForType> configuredTypes) { _cache = cache; _configuredTypes = configuredTypes; proxyFactory.Initialize(_cache); _proxyFactory = proxyFactory; }
public virtual void Initialize(IEnumerable <ItemDefinition> contentTypes) { foreach (var definition in contentTypes) { contentBuilders[definition.ItemType] = definition; } interceptor.Initialize(contentTypes); }
public MbCacheFactory(IProxyFactory proxyFactory, CacheAdapter cache, ICacheKey cacheKey, ILockObjectGenerator lockObjectGenerator, IDictionary <Type, ConfigurationForType> configuredTypes) { _cache = cache; _cacheKey = cacheKey; _configuredTypes = configuredTypes; proxyFactory.Initialize(_cache, cacheKey, lockObjectGeneratorOrNullObject(lockObjectGenerator)); _proxyFactory = proxyFactory; }
public virtual void Initialize(IEnumerable <Type> contentTypes) { interceptor.Initialize(contentTypes); }