Table of Contents

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

int

ProcessId

Process ID of the sandboxed process.

public int ProcessId { get; }

Property Value

int

StandardError

Standard error stream from the sandboxed process.

public StreamReader StandardError { get; }

Property Value

StreamReader

StandardInput

Standard input stream to the sandboxed process.

public StreamWriter StandardInput { get; }

Property Value

StreamWriter

StandardOutput

Standard output stream from the sandboxed process.

public StreamReader StandardOutput { get; }

Property Value

StreamReader

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)

Parameters

ct CancellationToken

Returns

Task