Class DirectProducer

Assembly: redb.Route.dll

Direct producer. Sends exchanges by invoking the endpoint's consumer processor synchronously.

public class DirectProducer : IProducer, IProcessor

Inheritance

Object→DirectProducer

Implements

Methods

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)

Start(CancellationToken)

Starts the producer.

public Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops the producer.

public Task Stop(CancellationToken ct = default)

Constructors

DirectProducer(DirectEndpoint)

Creates a direct producer.