Table of Contents

Interface ISandboxWorkerClient

Namespace
DotBoxD.Hosting
Assembly
DotBoxD.Hosting.dll

Advanced SPI for wiring 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

Remarks

Most hosts should not implement this interface by hand. Use the shipped 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

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

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

Parameters

plan ExecutionPlan
entrypoint string
input SandboxValue
options SandboxExecutionOptions
cancellationToken CancellationToken

Returns

ValueTask<SandboxExecutionResult>