Interface IEndpoint

Assembly: redb.Route.dll

Represents a lightweight endpoint in the route pipeline.
An endpoint is an addressable destination/source identified by a normalized URI key.
No metrics or health checks — those are handled by OpenTelemetry infrastructure.

public interface IEndpoint

Properties

Component

The component that created this endpoint.

IComponent Component { get; }

ScopeFactory

Optional scope factory for creating per-exchange DI scopes.

IServiceScopeFactory? ScopeFactory { get; set; }

Uri

Parsed URI identifying this endpoint.

EndpointUri Uri { get; }

Methods

CreateConsumer(IProcessor)

Creates a consumer for receiving messages from this endpoint.

IConsumer CreateConsumer(IProcessor processor)

CreateProducer()

Creates a producer for sending messages to this endpoint.

IProducer CreateProducer()

Start(CancellationToken)

Starts the endpoint lifecycle.

Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops the endpoint lifecycle.

Task Stop(CancellationToken ct = default)