Class ExecConsumer

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

Scheduled exec consumer. Fires the configured command on a fixed interval (via
) and pushes the resulting exchange into the route pipeline.

Supported schedule formats: 500ms, 30s, 5m, 1h.
Cron expressions are intentionally not handled here — chain
From("quartz://<cron>").To("exec://run?command=...") when cron is required.

public sealed class ExecConsumer : IConsumer

Inheritance

Object→ExecConsumer

Implements

Properties

Endpoint

The endpoint this consumer is attached to (for diagnostics/logging).

public IEndpoint? Endpoint { get; }

Methods

Start(CancellationToken)

Starts consuming messages.

public Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops consuming messages.

public Task Stop(CancellationToken ct = default)

Constructors