示例#1
0
        public static ProcessWrapper StartProcess(ProcessStartInfo startInfo, TextWriter outWriter, TextWriter errorWriter, EventHandler exited, StringDictionary environmentOverride)
        {
            ProcessEventHandler wout = OutWriter.GetWriteHandler(outWriter);
            ProcessEventHandler werr = OutWriter.GetWriteHandler(errorWriter);

            return(StartProcess(startInfo, wout, werr, exited, environmentOverride));
        }
示例#2
0
        public static ProcessWrapper StartProcess(string command, string arguments, string workingDirectory, TextWriter outWriter, TextWriter errorWriter, EventHandler exited, bool redirectStandardInput)
        {
            ProcessEventHandler wout = OutWriter.GetWriteHandler(outWriter);
            ProcessEventHandler werr = OutWriter.GetWriteHandler(errorWriter);

            return(StartProcess(command, arguments, workingDirectory, wout, werr, exited, redirectStandardInput));
        }