Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created December 16, 2018 15:49
Embed
What would you like to do?
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