Skip to content

josephaw1022/ConnectionStringAspireSpike

Repository files navigation

Point

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

Connection String (Web App Project)

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"
  }
}

App Host File

image

Web App File

image

Web App Endpoint Response

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages