Formatted file.

This commit is contained in:
Sipke Schoorstra
2015-08-04 17:18:28 +01:00
parent 8cda6b54c6
commit de29f63521

View File

@@ -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);