Class PayloadTemplateDefinition

Assembly: redb.Route.Templates.dll

The <payload> node: renders a template into the body, a header or a property.
Compiles the template at route build — a missing file or a syntax error fails Start()
with the template name and position. Declarative on purpose: the XML form and Message History
read , , and .

public sealed class PayloadTemplateDefinition : ProcessorDefinition, IProcessorDefinition

Inheritance

Object→ProcessorDefinition→PayloadTemplateDefinition

Implements

Inherited Members

Properties

Args

Named arguments evaluated before the render; null when none.

public TemplateArgs? Args { get; }

MediaType

Result type: drives escaping and ContentType.

public MediaType MediaType { get; }

Source

Template text origin.

public TextSource Source { get; }

Target

Body, header or property.

public TemplateTarget Target { get; }

TargetName

Header / property name when is not the body.

public string? TargetName { get; }

Methods

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

Constructors