示例#1
0
 public static IConfigurationConfigurator WithKeyFormatter(this IConfigurationSourceConfigurator configuration, IKeyFormatter keyFormatter)
 {
     return(configuration.WrapSource(x => new KeyFormatterConfigurationSourceDecorator(x, keyFormatter)));
 }
示例#2
0
 public static IConfigurationSourceConfigurator WithCache(this IConfigurationSourceConfigurator configurationSourceConfigurator, ICacheKeyCreator cacheKeyCreator, ObjectCache objectCache, Func <CacheItemPolicy> cacheItemPolicyFactory)
 {
     return(configurationSourceConfigurator.WrapSource(x => new CachingConfigurationSourceDecorator(x, cacheKeyCreator, objectCache, cacheItemPolicyFactory)));
 }