Skip to content

Commit d57085c

Browse files
author
marc
committed
Revert "resolve conflicts"
This reverts commit 732c50f.
1 parent 732c50f commit d57085c

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

Src/StackifyLib/Config.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -202,27 +202,6 @@ internal static string Get(string key, string defaultValue = null)
202202
{
203203
if (string.IsNullOrWhiteSpace(key) == false)
204204
{
205-
if (string.IsNullOrEmpty(v))
206-
{
207-
v = System.Environment.GetEnvironmentVariable(key);
208-
}
209-
210-
if (string.IsNullOrEmpty(v))
211-
{
212-
v = System.Environment.GetEnvironmentVariable(key.ToUpperInvariant());
213-
}
214-
215-
if (string.IsNullOrEmpty(v))
216-
{
217-
// Linux systems do not allow period in an environment variable name
218-
v = System.Environment.GetEnvironmentVariable(key.Replace('.', '_').ToUpperInvariant());
219-
}
220-
221-
if (string.IsNullOrEmpty(v) && key.StartsWith("Stackify."))
222-
{
223-
v = System.Environment.GetEnvironmentVariable("RETRACE_" + key.Substring(9).Replace('.', '_').ToUpperInvariant());
224-
}
225-
226205
#if NETCORE || NETCOREX
227206
if (_configuration != null)
228207
{
@@ -250,6 +229,27 @@ internal static string Get(string key, string defaultValue = null)
250229
v = System.Configuration.ConfigurationManager.AppSettings[key];
251230
}
252231
#endif
232+
233+
if (string.IsNullOrEmpty(v))
234+
{
235+
v = System.Environment.GetEnvironmentVariable(key);
236+
}
237+
238+
if (string.IsNullOrEmpty(v))
239+
{
240+
v = System.Environment.GetEnvironmentVariable(key.ToUpperInvariant());
241+
}
242+
243+
if (string.IsNullOrEmpty(v))
244+
{
245+
// Linux systems do not allow period in an environment variable name
246+
v = System.Environment.GetEnvironmentVariable(key.Replace('.', '_').ToUpperInvariant());
247+
}
248+
249+
if (string.IsNullOrEmpty(v) && key.StartsWith("Stackify."))
250+
{
251+
v = System.Environment.GetEnvironmentVariable("RETRACE_" + key.Substring(9).Replace('.', '_').ToUpperInvariant());
252+
}
253253
}
254254
}
255255
}

0 commit comments

Comments
 (0)