示例#1
0
 public void WaitForExit(Process process)
 {
     var processWrapper = new ProcessWrapper(process);
     WaitForExit(processWrapper);
 }
示例#2
0
文件: Executable.cs 项目: hackmp/kudu
        // This is pure async process execution
        public async Task<int> ExecuteAsync(ITracer tracer, string arguments, Stream output, Stream error, Stream input = null, IdleManager idleManager = null)
        {
            using (GetProcessStep(tracer, arguments))
            {
                using (Process process = CreateProcess(arguments))
                {
                    var wrapper = new ProcessWrapper(process);

                    int exitCode = await wrapper.Start(output, error, input, idleManager ?? new IdleManager(IdleTimeout, tracer));

                    tracer.TraceProcessExitCode(process);

                    return exitCode;
                }
            }
        }
示例#3
0
        public void WaitForExit(Process process)
        {
            var processWrapper = new ProcessWrapper(process);

            WaitForExit(processWrapper);
        }