Table of Contents

Class ProcessResult

Namespace
JD.AI.Core.Infrastructure
Assembly
JD.AI.Core.dll

Result of a process execution containing exit code, stdout, and stderr.

public sealed record ProcessResult : IEquatable<ProcessResult>
Inheritance
ProcessResult
Implements
Inherited Members

Constructors

ProcessResult(int, string, string)

Result of a process execution containing exit code, stdout, and stderr.

public ProcessResult(int ExitCode, string StandardOutput, string StandardError)

Parameters

ExitCode int

The process exit code.

StandardOutput string

Captured standard output.

StandardError string

Captured standard error.

Properties

ExitCode

The process exit code.

public int ExitCode { get; init; }

Property Value

int

StandardError

Captured standard error.

public string StandardError { get; init; }

Property Value

string

StandardOutput

Captured standard output.

public string StandardOutput { get; init; }

Property Value

string

Success

Gets whether the process exited successfully (exit code 0).

public bool Success { get; }

Property Value

bool