Class ExecEndpointOptions
Options for the exec endpoint. Shared by producer and consumer.
URI: exec://run?command=git&args=status&timeoutMs=5000&allowedCommands=git,ls,pwd
public sealed class ExecEndpointOptions : EndpointOptions
Inheritance
Inherited Members
Properties
AllowedCommands
Comma-separated list of permitted command names. When non-empty, every request must
public string? AllowedCommands { get; set; }
Args
Default argument list, whitespace-separated. May be overridden per-call by the
public string? Args { get; set; }
CaptureStderrInBody
When true, stderr is folded into the JSON response body alongside stdout.
public bool CaptureStderrInBody { get; set; }
Command
The command to execute. May be overridden per-call by the
public string? Command { get; set; }
EnvironmentOverrides
Comma-separated KEY=VALUE environment overrides. These are added on top of
public string? EnvironmentOverrides { get; set; }
MaxStderrBytes
Maximum bytes captured from stderr. Excess output is silently dropped. Default 256 KiB.
public int MaxStderrBytes { get; set; }
MaxStdoutBytes
Maximum bytes captured from stdout. Excess output is silently dropped. Default 1 MiB.
public int MaxStdoutBytes { get; set; }
Schedule
Schedule expression for consumer mode. Supported formats: 500ms, 30s, 5m, 1h.
public string? Schedule { get; set; }
ScrubEnvironment
When true, the spawned process inherits no environment variables — only the
public bool ScrubEnvironment { get; set; }
TimeoutMs
Wall-clock timeout in milliseconds. The process is forcibly terminated when exceeded
public int TimeoutMs { get; set; }
WorkingDirectory
Working directory for the spawned process (default: the current process cwd).
public string? WorkingDirectory { get; set; }
Methods
Validate()
Validates required parameters and constraints. Called after BindFromUri.
public override void Validate()