Class MockConsumer

Assembly: redb.Route.dll

Mock consumer. Delegates to the inner processor and records the exchange.

public class MockConsumer : IConsumer

Inheritance

Object→MockConsumer

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