Interface IConsumer

Assembly: redb.Route.dll

Receives messages from an endpoint and delegates to a processor.
Manages its own lifecycle (polling, subscribing, etc.).

public interface IConsumer

Properties

Endpoint

The endpoint this consumer is attached to (for diagnostics/logging).

IEndpoint? Endpoint { get; }

Methods

Start(CancellationToken)

Starts consuming messages.

Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops consuming messages.

Task Stop(CancellationToken ct = default)