mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing project build
--HG-- branch : 1.x
This commit is contained in:
@@ -93,7 +93,7 @@ namespace Orchard.Specs.Bindings {
|
|||||||
var shellSettings = new ShellSettings {
|
var shellSettings = new ShellSettings {
|
||||||
Name = shellName,
|
Name = shellName,
|
||||||
RequestUrlHost = hostName,
|
RequestUrlHost = hostName,
|
||||||
State = new TenantState("Uninitialized"),
|
State = TenantState.Uninitialized,
|
||||||
};
|
};
|
||||||
using (var environment = MvcApplication.CreateStandaloneEnvironment("Default")) {
|
using (var environment = MvcApplication.CreateStandaloneEnvironment("Default")) {
|
||||||
environment.Resolve<IShellSettingsManager>().SaveSettings(shellSettings);
|
environment.Resolve<IShellSettingsManager>().SaveSettings(shellSettings);
|
||||||
|
@@ -51,7 +51,7 @@ namespace Orchard.Specs.Hosting.Orchard.Web {
|
|||||||
if (settings == null) {
|
if (settings == null) {
|
||||||
settings = new ShellSettings {
|
settings = new ShellSettings {
|
||||||
Name = name,
|
Name = name,
|
||||||
State = new TenantState("Uninitialized")
|
State = TenantState.Uninitialized
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -155,7 +155,7 @@ namespace Orchard.Setup.Services {
|
|||||||
// components will exist entirely in isolation - no crossover between the safemode container currently in effect
|
// components will exist entirely in isolation - no crossover between the safemode container currently in effect
|
||||||
|
|
||||||
// must mark state as Running - otherwise standalone enviro is created "for setup"
|
// must mark state as Running - otherwise standalone enviro is created "for setup"
|
||||||
shellSettings.State = new TenantState("Running");
|
shellSettings.State = TenantState.Running;
|
||||||
using (var environment = _orchardHost.CreateStandaloneEnvironment(shellSettings)) {
|
using (var environment = _orchardHost.CreateStandaloneEnvironment(shellSettings)) {
|
||||||
try {
|
try {
|
||||||
executionId = CreateTenantData(context, environment);
|
executionId = CreateTenantData(context, environment);
|
||||||
|
Reference in New Issue
Block a user