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