Class ExecOutput
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
A chunk of standard output or error.
public sealed record ExecOutput : ExecEvent, IEquatable<ExecEvent>, IEquatable<ExecOutput>
- Inheritance
-
ExecOutput
- Implements
- Inherited Members
Constructors
ExecOutput(bool, ReadOnlyMemory<byte>)
A chunk of standard output or error.
public ExecOutput(bool IsStdErr, ReadOnlyMemory<byte> Data)
Parameters
IsStdErrboolTrue for standard error, false for standard output.
DataReadOnlyMemory<byte>The raw output bytes.
Properties
Data
The raw output bytes.
public ReadOnlyMemory<byte> Data { get; init; }
Property Value
IsStdErr
True for standard error, false for standard output.
public bool IsStdErr { get; init; }
Property Value
Text
Decodes the chunk as UTF-8.
public string Text { get; }