mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Fix "feature enable" not working from command line
--HG-- branch : dev
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Web.Routing;
|
||||
using Autofac;
|
||||
using Orchard.Environment;
|
||||
using Orchard.Environment.Configuration;
|
||||
using Orchard.Environment.State;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Logging;
|
||||
using Orchard.Tasks;
|
||||
@@ -54,8 +55,14 @@ namespace Orchard.Commands {
|
||||
};
|
||||
|
||||
env.Resolve<ICommandManager>().Execute(parameters);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// in effect "pump messages" see PostMessage circa 1980
|
||||
var processingEngine = _hostContainer.Resolve<IProcessingEngine>();
|
||||
while (processingEngine.AreTasksPending())
|
||||
processingEngine.ExecuteNextTask();
|
||||
|
||||
return 0;
|
||||
}
|
||||
catch (OrchardCommandHostRetryException e) {
|
||||
// Special "Retry" return code for our host
|
||||
|
Reference in New Issue
Block a user