Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Utility/AppContextSwitchHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ internal static class AppContextSwitchHelper
/// <summary>
/// Determines if either an AppContext switch or its corresponding Environment Variable is set
/// </summary>
/// <param name="appContexSwitchName">Name of the AppContext switch.</param>
/// <param name="appContextSwitchName">Name of the AppContext switch.</param>
/// <param name="environmentVariableName">Name of the Environment variable.</param>
/// <returns>If the AppContext switch has been set, returns the value of the switch.
/// If the AppContext switch has not been set, returns the value of the environment variable.
/// False if neither is set.
/// </returns>
public static bool GetConfigValue(string appContexSwitchName, string environmentVariableName)
public static bool GetConfigValue(string appContextSwitchName, string environmentVariableName)
{
// First check for the AppContext switch, giving it priority over the environment variable.
if (AppContext.TryGetSwitch(appContexSwitchName, out bool value))
if (AppContext.TryGetSwitch(appContextSwitchName, out bool value))
{
return value;
}
Expand Down
Loading