mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Changed tenant name prefix separator in platform configuration reader.
This commit is contained in:
parent
eac7d6290e
commit
5dbb82415b
@ -18,7 +18,7 @@ namespace Orchard.Azure.Services.Environment.Configuration {
|
||||
/// <param name="namePrefix">An optional prefix to prepend the setting name with.</param>
|
||||
/// <returns>The value of the setting if found with or without tenant name prefix, otherwise null.</returns>
|
||||
public static string GetSetting(string name, ShellSettings shellSettings, string namePrefix = null) {
|
||||
var tenantName = String.Format("{0}_{1}{2}", shellSettings.Name, namePrefix, name);
|
||||
var tenantName = String.Format("{0}:{1}{2}", shellSettings.Name, namePrefix, name);
|
||||
var fallbackName = String.Format("{0}{1}", namePrefix, name);
|
||||
return CloudConfigurationManager.GetSetting(tenantName) ?? CloudConfigurationManager.GetSetting(fallbackName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user