Class DirectConsumer

Assembly: redb.Route.dll

Direct consumer. Registers the processor on the endpoint so producers can call it.
Does not poll or subscribe — just holds a reference.

public class DirectConsumer : IConsumer

Inheritance

Object→DirectConsumer

Implements

Properties

Endpoint

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

public IEndpoint Endpoint { get; }

Methods

Start(CancellationToken)

Starts consuming messages.

public Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops consuming messages.

public Task Stop(CancellationToken ct = default)

Constructors