Changed tenant name prefix separator in platform configuration reader.

This commit is contained in:
Daniel Stolt 2013-08-28 21:53:03 +02:00 committed by Sebastien Ros
parent eac7d6290e
commit 5dbb82415b

View File

@ -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);
}