WebConfigSetter:

- Aggiunta gest ServerConf in sostituzioni previste
This commit is contained in:
Samuele Locatelli
2022-12-28 11:35:48 +01:00
parent 0488260a93
commit f33a91efc6
2 changed files with 42 additions and 0 deletions
+11
View File
@@ -323,6 +323,17 @@ namespace WebConfigSetter
}
}
}
if (currJsonConf["ServerConf"] != null)
{
foreach (var keySubst in currConfig.jsonConnStrRules)
{
if (currJsonConf["ServerConf"][keySubst.Key] != null)
{
currJsonConf["ServerConf"][keySubst.Key].Replace(keySubst.Value);
changed = true;
}
}
}
}
string newFileData = JsonConvert.SerializeObject(currJsonConf, Newtonsoft.Json.Formatting.Indented);
if (changed)