public ConfigurationValueCollection(ICacheProvider cacheProvider, IConfigurationResolver configurationResolver, string applicationName)
 {
     _valueCollection = new ValueCollection <T>((s) =>
     {
         var key = $"Config{applicationName}{s}";
         return(cacheProvider.GetValue(key, () => configurationResolver.Resolve <T>(s, applicationName)));
     });
 }
Exemplo n.º 2
0
 public FeatureValueCollection(ICacheProvider cacheProvider, IFeatureResolver featureResolver, string applicationName)
 {
     _valueCollection = new ValueCollection <bool>((s) =>
     {
         var key = $"Feature{applicationName}{s}";
         return(cacheProvider.GetValue(key, () => featureResolver.Resolve(s, applicationName)));
     });
 }