Skip to content

Instantly share code, notes, and snippets.

@ljtill
Last active December 6, 2019 16:13
Show Gist options
  • Select an option

  • Save ljtill/b9f692b874c2bcae348d7e2ea01ec4cd to your computer and use it in GitHub Desktop.

Select an option

Save ljtill/b9f692b874c2bcae348d7e2ea01ec4cd to your computer and use it in GitHub Desktop.
Provides the ability to retrieve an environment variable
private static string GetEnvironment(string name)
{
/// <summary>
/// Environment Variable retrieval from AppSettings or local.settings.json
/// </summary>
return Environment.GetEnvironmentVariable(name, EnvironmentVariableTarget.Process);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment