Class ToDynamicDefinition

Assembly: redb.Route.dll

Camel-style dynamic toD(): sends the exchange to an endpoint whose URI is
resolved per message. Accepts a ${...} template, an ,
or a factory delegate.

Example: .ToD("kafka://orders-${header.region}").

public sealed class ToDynamicDefinition : ProcessorDefinition, IProcessorDefinition

Inheritance

Object→ProcessorDefinition→ToDynamicDefinition

Implements

Inherited Members

Properties

Template

The URI template, when the node was declared with one (diagnostics, XML form).

public string? Template { get; }

Methods

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

Constructors

ToDynamicDefinition(Func<IExchange, string>)

Creates a dynamic-to definition from a factory delegate producing the URI.

ToDynamicDefinition(IExpression)

Creates a dynamic-to definition from an producing the URI.

ToDynamicDefinition(string)

Creates a dynamic-to definition from a ${...} URI template.