public ProcessRunResult(ProcessExitType exitType, ICrashReport crashReport, StringOrFile stdOut, StringOrFile stdErr, double memoryUsed, int exitCode, TimeSpan executionTime) { ExitType = exitType; CrashReport = crashReport; Output = stdOut; StandardError = stdErr; MemoryUsed = memoryUsed; ExitCode = exitCode; ExecutionTime = executionTime; }
public bool TryFindCrashReport(out ICrashReport report) { if (mProcess.ExitCode != 0) { report = mCrashReportFinder .FindCrashReports(mProcess, maxReportCount: 1) .FirstOrDefault(); return(report != null); } else { report = null; return(false); } }