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