Class ExecProducer

Namespace: redb.Route.Exec
Assembly: redb.Route.Exec.dll

Spawns OS processes synchronously and returns stdout/stderr/exitCode on the outbound exchange.

Input resolution order (highest → lowest priority):
JSON body of the form {"command":"...","args":["..."]} on ./ headers./ URI options.


Security: when is set, the resolved
command must match one of the listed names (case-insensitive, file-name-only). Requests
against commands not on the allowlist throw .

public sealed class ExecProducer : ConnectableProducer, IProducer, IProcessor

Inheritance

Object→ConnectableProducer→ExecProducer

Implements

Inherited Members

Properties

ProducerEndpoint

The endpoint this producer sends to.

protected override IEndpoint ProducerEndpoint { get; }

ProducerName

Display name for logging (e.g. "http:https://api.example.com", "kafka:orders").

protected override string ProducerName { get; }

Methods

ConnectAsync(CancellationToken)

Set up connection/resources. Awaited by Start() to completion before IsStarted flips to

protected override Task ConnectAsync(CancellationToken ct)

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public override Task Process(IExchange exchange, CancellationToken ct = default)

Constructors