Skip to content

Interface ISandboxWorkerClient

Namespace: DotBoxD.Hosting
Assembly: DotBoxD.Hosting.dll

Advanced SPI for wiring DotBoxD.Kernels.SandboxIsolation.WorkerProcess to a real out-of-process boundary. A consumer implements the transport/process lifecycle and runs the requested plan on the worker side. The host re-validates the returned result envelope before publishing it, so a misbehaving worker fails closed rather than escaping the sandbox contract.

public interface ISandboxWorkerClient

Most hosts should not implement this interface by hand. Use the shipped DotBoxD.Hosting.SandboxHostWorkerClient reference adapter on the worker side of the boundary, which re-prepares the plan from its module and policy and produces a validator-compliant envelope.

ExecuteInWorkerAsync(ExecutionPlan, string, SandboxValue, SandboxExecutionOptions, CancellationToken)

Section titled “ ExecuteInWorkerAsync(ExecutionPlan, string, SandboxValue, SandboxExecutionOptions, CancellationToken)”
ValueTask<SandboxExecutionResult> ExecuteInWorkerAsync(ExecutionPlan plan, string entrypoint, SandboxValue input, SandboxExecutionOptions options, CancellationToken cancellationToken = default)

plan ExecutionPlan

entrypoint string

input SandboxValue

options SandboxExecutionOptions

cancellationToken CancellationToken

ValueTask<SandboxExecutionResult>