mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Formatted file.
This commit is contained in:
@@ -25,8 +25,7 @@ using Orchard.Security;
|
|||||||
using Orchard.Settings;
|
using Orchard.Settings;
|
||||||
using Orchard.Utility.Extensions;
|
using Orchard.Utility.Extensions;
|
||||||
|
|
||||||
namespace Orchard.Setup.Services
|
namespace Orchard.Setup.Services {
|
||||||
{
|
|
||||||
public class SetupService : ISetupService {
|
public class SetupService : ISetupService {
|
||||||
private readonly ShellSettings _shellSettings;
|
private readonly ShellSettings _shellSettings;
|
||||||
private readonly IOrchardHost _orchardHost;
|
private readonly IOrchardHost _orchardHost;
|
||||||
@@ -168,7 +167,7 @@ namespace Orchard.Setup.Services
|
|||||||
}
|
}
|
||||||
|
|
||||||
// in effect "pump messages" see PostMessage circa 1980
|
// in effect "pump messages" see PostMessage circa 1980
|
||||||
while ( _processingEngine.AreTasksPending() )
|
while (_processingEngine.AreTasksPending())
|
||||||
_processingEngine.ExecuteNextTask();
|
_processingEngine.ExecuteNextTask();
|
||||||
|
|
||||||
// creating a standalone environment.
|
// creating a standalone environment.
|
||||||
@@ -219,7 +218,7 @@ namespace Orchard.Setup.Services
|
|||||||
var recipeManager = environment.Resolve<IRecipeManager>();
|
var recipeManager = environment.Resolve<IRecipeManager>();
|
||||||
var recipe = Recipes().FirstOrDefault(r => r.Name.Equals(context.Recipe, StringComparison.OrdinalIgnoreCase));
|
var recipe = Recipes().FirstOrDefault(r => r.Name.Equals(context.Recipe, StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
||||||
if(recipe == null)
|
if (recipe == null)
|
||||||
throw new OrchardException(T("The recipe '{0}' could not be found.", context.Recipe));
|
throw new OrchardException(T("The recipe '{0}' could not be found.", context.Recipe));
|
||||||
|
|
||||||
var executionId = recipeManager.Execute(recipe);
|
var executionId = recipeManager.Execute(recipe);
|
||||||
|
|||||||
Reference in New Issue
Block a user