basicConsume
Consume messages from a queue by sending them to the channel. The consumer is automatically canceled when the channel is closed.
Return
AMQPResponse.Channel.Basic.ConsumeOk confirming that broker has accepted the consume request.
Parameters
Name of the queue.
Name of the consumer; if empty, will be generated by the broker.
Controls whether message will be acked or nacked automatically (true
) or manually (false
).
Ensures that queue can only be consumed by a single consumer.
Additional arguments (check RabbitMQ documentation).
Consume messages from a queue by sending them to registered consume listeners. The caller is responsible for cancelling the consumer when done.
Return
AMQPResponse.Channel.Basic.ConsumeOk confirming that broker has accepted the consume request.
Parameters
Name of the queue.
Name of the consumer; if empty, will be generated by the broker.
Controls whether message will be acked or nacked automatically (true
) or manually (false
).
Ensures that queue can only be consumed by a single consumer.
Additional arguments (check RabbitMQ documentation).
: Callback when Delivery arrives - automatically registered.
: Callback when consumer is canceled - automatically registered.