--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-04-28 14:07:08 -07:00
27 changed files with 1210 additions and 54 deletions

View File

@@ -86,7 +86,7 @@ namespace Orchard.Core.Settings.Topology {
}
_eventBus.Notify(
typeof(IShellDescriptorManager).FullName + ".UpdateShellDescriptor",
"ShellDescriptor_Changed",
null);
}
}

View File

@@ -12,20 +12,12 @@ namespace Orchard.MultiTenancy.Services {
_orchardHost = orchardHost;
}
#region Implementation of ITenantService
public IEnumerable<ShellSettings> GetTenants() {
return _shellSettingsManager.LoadSettings();
}
public void CreateTenant(ShellSettings settings) {
_shellSettingsManager.SaveSettings(settings);
// MultiTenancy: This will not be needed when host listens to event bus
_orchardHost.Reinitialize_Obsolete();
}
#endregion
}
}

View File

@@ -173,9 +173,6 @@ namespace Orchard.Setup.Controllers {
_shellSettingsManager.SaveSettings(shellSettings);
// MultiTenancy: This will not be needed when host listens to event bus
_orchardHost.Reinitialize_Obsolete();
// redirect to the welcome page.
return Redirect("~/");
}