コード例 #1
0
ファイル: IdleManager.cs プロジェクト: albertjan/kudu
 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);
        }