Exemplo n.º 1
0
 public MbCacheFactory(IProxyFactory proxyFactory,
                       CacheAdapter cache,
                       IDictionary <Type, ConfigurationForType> configuredTypes)
 {
     _cache           = cache;
     _configuredTypes = configuredTypes;
     proxyFactory.Initialize(_cache);
     _proxyFactory = proxyFactory;
 }
Exemplo n.º 2
0
        public virtual void Initialize(IEnumerable <ItemDefinition> contentTypes)
        {
            foreach (var definition in contentTypes)
            {
                contentBuilders[definition.ItemType] = definition;
            }

            interceptor.Initialize(contentTypes);
        }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 public virtual void Initialize(IEnumerable <Type> contentTypes)
 {
     interceptor.Initialize(contentTypes);
 }