You can easily register hot-reloadable connection strings by registering them with the helper methods:
PerigeeApplication.ApplicationNoInit("ConnectionStrings", (c) => { //Register the connection stringc.RegisterConnectionString("DB","devServer"); //Get the connection string later...string connectionString =CredentialStore.GetCredential_ConnectionString("DB"); //Or get the credential, and cast it to retrieveif (CredentialStore.GetCredential("DB") isConnectionStringCredentialStoreItem m) {var connectionStringFromCred =m.ConnectionString; }});
The AppSettings.json file:
"ConnectionStrings": {"devServer":"data source=host;initial catalog=database; User Id=user; Password=abc"}