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 ISandboxWorkerClientRemarks
Section titled “Remarks”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.
Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”plan ExecutionPlan
entrypoint string
input SandboxValue
options SandboxExecutionOptions
cancellationToken CancellationToken