string Environment { get; }
Source
The current environment name. Read from "ASPNETCORE_ENVIRONMENT" or "DOTNET_ENVIRONMENT" environment variables, defaults to "Production" if neither is set.