private static JsonReader GetJsonReaderInstance(string path, ConfigLoaderOptions options) { var policy = options == null ? ConfigCachingPolicy.None : options.CachingPolicy; if (policy == ConfigCachingPolicy.None) { return(new JsonReader(path, options)); } return(readerStore.GetOrSet(ComputeHashForFile(path, policy), () => new JsonReader(path, options))); }
private static ConfigurationCollection GetCachedOverridenConfig( List <string> processedConfigs, RequireRendererConfiguration config, string entryPointPath) { if (config.CacheConfigObject) { return(configObjectHash.GetOrSet( ComputeConfigObjectHash(processedConfigs, entryPointPath), () => GetOverridenConfig(processedConfigs, config, entryPointPath))); } return(GetOverridenConfig(processedConfigs, config, entryPointPath)); }