We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e04c3 commit 9401817Copy full SHA for 9401817
src/Agent/NewRelic/Agent/Core/Config/ConfigurationLoader.cs
@@ -111,6 +111,14 @@ public static ValueWithProvenance<string> GetConfigSetting(string key)
111
value = new ValueWithProvenance<string>(ConfigurationManager.AppSettings[key],
112
"ConfigurationManager app setting");
113
}
114
+#else
115
+ if (value?.Value == null)
116
+ {
117
+ var configMgrStatic = new ConfigurationManagerStatic();
118
+ var configValue = configMgrStatic.GetAppSetting(key);
119
+ if (configValue != null)
120
+ value = new ValueWithProvenance<string>(configValue, configMgrStatic.AppSettingsFilePath);
121
+ }
122
#endif
123
return value;
124
0 commit comments