I have a standard .Net Framework Asp.Net application deployed in an Azure App Service. Within the Azure configuration, I've set up a couple environment variables and a connection string.
I'm able to retrieve the environment variables correctly at runtime.
var value = System.Environment.GetEnvironmentVariable("AppSettingTest");
How do you I retrieve the connection string?
This application IS NOT Asp.Net Core. I am not using dependency injection and a startup class. I could store that value in an environment variable, but I'm led to believe connection strings stored in the App Service configuration connection string is more secure.