Class ControlBusEndpointOptions

Assembly: redb.Route.dll

Options for the control-bus endpoint.

public sealed class ControlBusEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→ControlBusEndpointOptions

Inherited Members

Properties

Action

Action for the route command.

public ControlBusAction? Action { get; set; }

Async

Perform the action asynchronously (fire-and-forget). Default: false.

public bool Async { get; set; }

Command

Command family (set from the URI path).

public ControlBusCommand Command { get; set; }

Events

notify command only: comma-separated event-name filter (e.g. RouteStarted,RouteStopped).

public string? Events { get; set; }

Language

Expression language name for the language command (e.g. simple).

public string? Language { get; set; }

LoggingLevel

Logging level for the action. Default: Info.

public string LoggingLevel { get; set; }

RestartDelay

Delay in ms between stop and start on restart. Default: 1000.

public int RestartDelay { get; set; }

RouteId

Target route id. current resolves to the sending route. Optional for stats.

public string? RouteId { get; set; }

Methods

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()