예제 #1
0
        public virtual void configureCaches(HalRelationCacheConfiguration configuration)
        {
            Type cacheClass = configuration.CacheImplementationClass;

            foreach (KeyValuePair <Type, IDictionary <string, object> > cacheConfiguration in configuration.CacheConfigurations.SetOfKeyValuePairs())
            {
                Cache cache = createCache(cacheClass, cacheConfiguration.Value);
                registerCache(cacheConfiguration.Key, cache);
            }
        }
예제 #2
0
        public virtual void configureCaches(string contextParameter)
        {
            HalRelationCacheConfiguration configuration = new HalRelationCacheConfiguration(contextParameter);

            configureCaches(configuration);
        }