Ensure list of extensions is validated when creating standalone env

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-24 14:36:45 -07:00
parent db4bf1a177
commit 9907d0c997

View File

@@ -83,6 +83,9 @@ namespace Orchard.Environment {
IStandaloneEnvironment IOrchardHost.CreateStandaloneEnvironment(ShellSettings shellSettings) {
Logger.Debug("Creating standalone environment for tenant {0}", shellSettings.Name);
MonitorExtensions();
BuildCurrent();
var shellContext = CreateShellContext(shellSettings);
return new StandaloneEnvironment(shellContext.LifetimeScope);
}