RemoteExecutionResult
The final outcome of one command, distinct from an RPC failure.
- Kind:
Class - Namespace: Repl.Remote
- Assembly:
Repl.Remote - Source: src/Repl.Remote/RemoteExecutionResult.cs
Signature
Section titled “Signature”public sealed record RemoteExecutionResult : IEquatable<RemoteExecutionResult>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<RemoteExecutionResult>
Constructors
Section titled “Constructors”RemoteExecutionResult(int, string, JsonElement?, string, string)
Section titled “RemoteExecutionResult(int, string, JsonElement?, string, string)”The final outcome of one command, distinct from an RPC failure.
public RemoteExecutionResult(int ExitCode, string Kind, JsonElement? Result = null, string StandardOutput = "", string StandardError = "")Parameters
Section titled “Parameters”ExitCode(int): The application-selected exit code.Kind(string): The portable outcome category.Result(JsonElement?): The normalized command result, when available.StandardOutput(string): Text written to the invocation’s output stream.StandardError(string): Text written to the invocation’s error stream.
Properties
Section titled “Properties”ExitCode
Section titled “ExitCode”The application-selected exit code.
public int ExitCode { get; init; }Returns
Section titled “Returns”The portable outcome category.
public string Kind { get; init; }Returns
Section titled “Returns”Result
Section titled “Result”The normalized command result, when available.
public JsonElement? Result { get; init; }Returns
Section titled “Returns”JsonElement?
StandardError
Section titled “StandardError”Text written to the invocation’s error stream.
public string StandardError { get; init; }Returns
Section titled “Returns”StandardOutput
Section titled “StandardOutput”Text written to the invocation’s output stream.
public string StandardOutput { get; init; }