Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created December 16, 2018 15:49
Show Gist options
  • Save tonysneed/2613a47be6c863a550c8a64e620ce1ca to your computer and use it in GitHub Desktop.
Save tonysneed/2613a47be6c863a550c8a64e620ce1ca to your computer and use it in GitHub Desktop.
EnvironmentService
public class EnvironmentService : IEnvironmentService
{
public EnvironmentService()
{
EnvironmentName = Environment.GetEnvironmentVariable(EnvironmentVariables.AspnetCoreEnvironment)
?? Environments.Production;
}
public string EnvironmentName { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment