This repo illustrates that the connection string provided in the app host cannot be overridden by a user. if you define a connection string or config value that is not defined for your project in the app host, then you will be able to obtain the value. Otherwise the value will be what is defined in the apphost
Here we are trying to override cache1 connection string value and trying to create the cache3 connection string value
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"ConnectionStrings": {
"cache1": "localhost:6380",
"cache3": "localhost:6381"
}
}