Ejemplo n.º 1
0
        public static object GetConfiguration(
            [NotNull] this FileContainerConfiguration containerConfiguration,
            [NotNull] string name)
        {
            var value = containerConfiguration.GetConfigurationOrNull(name);

            if (value == null)
            {
                throw new AbpException($"Could not find the configuration value for '{name}'!");
            }

            return(value);
        }
 public object GetConfigurationOrNull(string name, object defaultValue = null)
 {
     return(_properties.GetOrDefault(name) ??
            _fallbackConfiguration?.GetConfigurationOrNull(name, defaultValue) ??
            defaultValue);
 }