Created
December 16, 2018 15:49
-
-
Save tonysneed/2613a47be6c863a550c8a64e620ce1ca 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(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