Class RestrictedSandbox
Restricted sandbox — filters environment variables, blocks dangerous commands, and enforces strict timeouts.
public sealed class RestrictedSandbox : ISandbox
- Inheritance
-
RestrictedSandbox
- Implements
- Inherited Members
Properties
ModeName
The sandbox mode name.
public string ModeName { get; }
Property Value
Methods
ExecuteAsync(string, string, int, CancellationToken)
Execute a command within the sandbox.
public Task<SandboxResult> ExecuteAsync(string command, string workingDirectory, int timeoutSeconds = 60, CancellationToken ct = default)
Parameters
commandstringworkingDirectorystringtimeoutSecondsintctCancellationToken