public static ProgramRunner RunProgram(ProcessLaunchContext launchContext) { var processHolder = ProcessHolder.Start(launchContext); return(new ProgramRunner(processHolder)); }
public ProgramRunner(ProcessHolder processHolder) { _processHolder = processHolder ?? throw new ArgumentNullException(nameof(processHolder)); }