Esempio n. 1
0
 private CommandReturnCodes RunCommandInSession(CommandHostContext context, string command)
 {
     try {
         var args = new OrchardParametersParser().Parse(new CommandParametersParser().Parse(new CommandLineParser().Parse(command)));
         return(context.CommandHost.RunCommandInSession(_input, _output, context.Logger, args));
     }
     catch (AppDomainUnloadedException) {
         _output.WriteLine("AppDomain of Orchard session has been unloaded. (Retrying...)");
         return(context.RetryResult);
     }
 }
Esempio n. 2
0
 private CommandReturnCodes RunCommandInSession(CommandHostContext context, string command) {
     try {
         var args = new OrchardParametersParser().Parse(new CommandParametersParser().Parse(new CommandLineParser().Parse(command)));
         return context.CommandHost.RunCommandInSession(_input, _output, context.Logger, args);
     }
     catch (AppDomainUnloadedException) {
         _output.WriteLine("AppDomain of Orchard session has been unloaded. (Retrying...)");
         return context.RetryResult;
     }
 }