Class BeanComponent

Assembly: redb.Route.dll

The bean: component: a reference to user code as an
ordinary endpoint, so declarative routes never carry class=/ref= attributes.
Two URI forms:
bean:#orderEnricher?method=Enrich — object from the context registry
bean:Acme.Orders.EnrichProcessor, Acme.Orders?timeoutMs=5 — instance created per endpoint
The instance lives as long as the endpoint (endpoints are cached by normalized URI, so equal
URIs share one instance and different parameter sets get their own). Unrecognised query
parameters bind to the instance's public settable properties through the same converter the
endpoint options use; [Sensitive]-marked properties join the URI redaction set. The
target method is picked once and compiled into a delegate — reflection never runs per message.

[EndpointRole(EndpointRole.Producer, Hint = "Use bean: as a To() destination.")]
public sealed class BeanComponent : ComponentBase, IComponent, IAsyncDisposable

Inheritance

Object→ComponentBase→BeanComponent

Implements

Inherited Members

Properties

Scheme

The URI scheme this component handles (e.g., "kafka", "rabbitmq").

public override string Scheme { get; }

Methods

CreateEndpoint(EndpointUri)

Creates an endpoint from a parsed URI.

public override IEndpoint CreateEndpoint(EndpointUri uri)