Skip to content

Instantly share code, notes, and snippets.

Last active December 20, 2018 22:03
What would you like to do?
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