Class SandboxedProcess
- Namespace
- JD.AI.Sandbox.Abstractions
- Assembly
- JD.AI.Sandbox.dll
Represents a started sandboxed process.
public sealed class SandboxedProcess : IAsyncDisposable
- Inheritance
-
SandboxedProcess
- Implements
- Inherited Members
Properties
ExitCode
Gets the process exit code.
public int ExitCode { get; }
Property Value
ProcessId
Process ID of the sandboxed process.
public int ProcessId { get; }
Property Value
StandardError
Standard error stream from the sandboxed process.
public StreamReader StandardError { get; }
Property Value
StandardInput
Standard input stream to the sandboxed process.
public StreamWriter StandardInput { get; }
Property Value
StandardOutput
Standard output stream from the sandboxed process.
public StreamReader StandardOutput { get; }
Property Value
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
Kill()
Kills the sandboxed process and all its children.
public void Kill()
WaitForExitAsync(CancellationToken)
Waits for the process to exit.
public Task WaitForExitAsync(CancellationToken ct = default)