Exemplo n.º 1
0
        private ConfigKeyReport GetLocalConfigKeyReport(string key)
        {
            string configValue = GetLocalConfigValue(key);

            if (configValue == null)
            {
                return(null);
            }
            ConfigKeyReport retVal = new ConfigKeyReport
            {
                Key   = key,
                Value = configValue
            };
            string configContextName;

            retVal.ConfigSource = WasValueFromConfigContext(key, out configContextName)
                ? ConfigKeySource.ContextSpecific
                : ConfigKeySource.Default;
            retVal.PlaneName         = PlaneDescriptor.Key;
            retVal.ConfigContextName = configContextName;

            return(retVal);
        }
Exemplo n.º 2
0
        public ConfigKeyReport GetConfigKeyReport(string key)
        {
            ConfigKeyReport retVal = GetLocalConfigKeyReport(key);

            return(retVal != null ? (retVal) : Child?.GetConfigKeyReport(key));
        }