ForgeTrust.Runnable.Core/Defaults/DefaultEnvironmentProvider.cs
DefaultEnvironmentProvider
Type
DefaultEnvironmentProvider
Default implementation of that retrieves the environment from
system environment variables. It checks for "ASPNETCORE_ENVIRONMENT" first, then "DOTNET_ENVIRONMENT",
and defaults to "Production" if neither is set.
Can be overridden by passing a custom implementation to the ,
when building the host.
Method
GetEnvironmentVariable(string, string?)
Gets the value of an environment variable from the system.