Пример #1
0
        public static IProcessAsyncOperation Run(string file, IConsole console)
        {
            DebugExecutionHandler h   = new DebugExecutionHandler(null);
            ExecutionCommand      cmd = Runtime.ProcessService.CreateCommand(file);

            return(h.Execute(cmd, console));
        }
		public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
		{
			if (!CanExecute (command))
			    return null;
			DebugExecutionHandler h = new DebugExecutionHandler (null);
			return h.Execute (command, console);
		}
Пример #3
0
        public IProcessAsyncOperation Execute(ExecutionCommand command, IConsole console)
        {
            if (!CanExecute(command))
            {
                return(null);
            }
            DebugExecutionHandler h = new DebugExecutionHandler(null);

            return(h.Execute(command, console));
        }
Пример #4
0
        public static IProcessAsyncOperation Run(string file, string args, string workingDir, IDictionary <string, string> envVars, IConsole console)
        {
            var h   = new DebugExecutionHandler(null);
            var cmd = Runtime.ProcessService.CreateCommand(file);

            if (args != null)
            {
                cmd.Arguments = args;
            }
            if (workingDir != null)
            {
                cmd.WorkingDirectory = workingDir;
            }
            if (envVars != null)
            {
                cmd.EnvironmentVariables = envVars;
            }

            return(h.Execute(cmd, console));
        }
Пример #5
0
		public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
		{
			DebugExecutionHandler h = new DebugExecutionHandler (engine);
			return h.Execute (command, console);
		}
Пример #6
0
		public static IProcessAsyncOperation Run (string file, IConsole console)
		{
			DebugExecutionHandler h = new DebugExecutionHandler (null);
			ExecutionCommand cmd = Runtime.ProcessService.CreateCommand (file);
			return h.Execute (cmd, console);
		}
Пример #7
0
        public IProcessAsyncOperation Execute(ExecutionCommand command, IConsole console)
        {
            DebugExecutionHandler h = new DebugExecutionHandler(engine);

            return(h.Execute(command, console));
        }