Orchard host recreates shell context based on significant events

At the moment the events related to shell settings and shell descriptor changes will cause the host to rebuild their compositions.

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-04-28 12:44:16 -07:00
parent 963c159743
commit cadfd78c55
11 changed files with 53 additions and 29 deletions

View File

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

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("~/");
}