void LaunchAndWaitForExit(Process process, TimeSpan?monitorOutput = null, TimeSpan?monitorResponding = null) { var waitHandler = new WaitForExitHandler(process); using (StartProcess(process, monitorOutput, monitorResponding)) waitHandler.WaitForExit(); _terminated.OnNext(Tuple.Create(process.StartInfo, process.ExitCode, process.Id)); }
void LaunchAndWaitForExit(Process process, TimeSpan? monitorOutput = null, TimeSpan? monitorResponding = null) { var waitHandler = new WaitForExitHandler(process); using (StartProcess(process, monitorOutput, monitorResponding)) waitHandler.WaitForExit(); _terminated.OnNext(Tuple.Create(process.StartInfo, process.ExitCode, process.Id)); }