BufferedProcessResult(String, Int32, Int32, String, String, DateTime, DateTime, Boolean, Nullable, Boolean) Constructor

Definition

Namespace CliInvoke.Core
Assembly CliInvoke.Core.dll

Initialises the BufferedProcessResult with process information.

public BufferedProcessResult(string executableFilePath, int exitCode, int processId, string standardOutput, string standardError, DateTime startTime, DateTime exitTime, bool canceled, PosixSignal? signal, bool wasTruncated = false)

Parameters

executableFilePath
String

The file path of the file that was executed.

exitCode
Int32

The process' exit code.

processId
Int32
standardOutput
String

The process' standard output as a string.

standardError
String

The process' standard error as a string.

startTime
DateTime

The start time of the process.

exitTime
DateTime

The exit time of the process.

canceled
Boolean

A value indicating whether the library terminated the process via its cancellation machinery rather than the process exiting on its own.

signal
Nullable<PosixSignal>

The POSIX signal that terminated the process, or null when not applicable.

wasTruncated
Boolean

A value indicating whether the captured standard output or standard error was truncated because it exceeded the configured per-stream cap.