I have a .Net core console application and when I run it the following method is hit in Startup.cs class
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
If I check the contents of env, the EnvironmentName property is set to Production. I am wondering, where in the code path does it identify whether the environment is DEV, QA or Production?