Beispiel #1
0
 private void execute(ShellCmdLet shellCmdLet)
 {            
     var returnData = DI.reflection.invoke(null,shellCmdLet.methodToExecute, shellCmdLet.cmdParameters);
     shellIO.lastExecutionResult = (returnData!=null) ? returnData.ToString() : "";
     if (returnData != null)
         shellIO.writeLineWithPreAndPostNewLine(returnData.ToString());
 }
Beispiel #2
0
        private void execute(ShellCmdLet shellCmdLet)
        {
            var returnData = DI.reflection.invoke(null, shellCmdLet.methodToExecute, shellCmdLet.cmdParameters);

            shellIO.lastExecutionResult = (returnData != null) ? returnData.ToString() : "";
            if (returnData != null)
            {
                shellIO.writeLineWithPreAndPostNewLine(returnData.ToString());
            }
        }