Last active
December 20, 2018 22:03
-
-
Save tonysneed/1083738e0f3d02f131a08e334fed971f to your computer and use it in GitHub Desktop.
EnvironmentService
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EnvironmentService : IEnvironmentService | |
{ | |
public EnvironmentService() | |
{ | |
EnvironmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") | |
?? "Production"; | |
} | |
public string EnvironmentName { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment