#18339: Isolating shells creation

Work Item: 18339

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-12 10:12:23 -08:00
parent 807fdcf566
commit f4ba05e851
@@ -1,3 +1,4 @@
using System;
using System.Linq; using System.Linq;
using System.Collections.Generic; using System.Collections.Generic;
@@ -129,9 +130,14 @@ namespace Orchard.Environment {
// load all tenants, and activate their shell // load all tenants, and activate their shell
if (allSettings.Any()) { if (allSettings.Any()) {
foreach (var settings in allSettings) { foreach (var settings in allSettings) {
try {
var context = CreateShellContext(settings); var context = CreateShellContext(settings);
ActivateShell(context); ActivateShell(context);
} }
catch(Exception e) {
Logger.Error(e, "A tenant could not be started: " + settings.Name);
}
}
} }
// no settings, run the Setup // no settings, run the Setup
else { else {