Table of Contents

Delegate SingleActiveConsumerStateHandler

Namespace
RabbitMQ.AMQP.Client
Assembly
RabbitMQ.AMQP.Client.dll

Notifies that this consumer's single-active-consumer role on a quorum queue may have changed, using the broker's rabbitmq:active link-state property delivered on AMQP 1.0 FLOW.

public delegate void SingleActiveConsumerStateHandler(IConsumer consumer, bool isActive)

Parameters

consumer IConsumer

The consumer whose SAC state was reported.

isActive bool

true when this consumer is the active SAC consumer; otherwise false.

Remarks

The delegate is invoked on AMQP.Net Lite's I/O thread. Keep work non-blocking; offload to Run(Action) or a channel if you need heavier processing.

Requires RabbitMQ 4.3+ with quorum single-active-consumer flow notifications.