Class AsyncEventingBasicConsumer
public class AsyncEventingBasicConsumer : AsyncDefaultBasicConsumer, IBasicConsumer, IAsyncBasicConsumer
- Inheritance
-
AsyncEventingBasicConsumer
- Implements
- Inherited Members
Constructors
AsyncEventingBasicConsumer(IModel)
Constructor which sets the Model property to the given value.
public AsyncEventingBasicConsumer(IModel model)
Parameters
model
IModel
Methods
HandleBasicCancelOk(string)
Fires when the server confirms successful consumer cancelation.
public override Task HandleBasicCancelOk(string consumerTag)
Parameters
consumerTag
string
Returns
HandleBasicConsumeOk(string)
Fires when the server confirms successful consumer registration.
public override Task HandleBasicConsumeOk(string consumerTag)
Parameters
consumerTag
string
Returns
HandleBasicDeliver(string, ulong, bool, string, string, IBasicProperties, ReadOnlyMemory<byte>)
Fires the Received event.
public override Task HandleBasicDeliver(string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, ReadOnlyMemory<byte> body)
Parameters
consumerTag
stringdeliveryTag
ulongredelivered
boolexchange
stringroutingKey
stringproperties
IBasicPropertiesbody
ReadOnlyMemory<byte>
Returns
HandleModelShutdown(object, ShutdownEventArgs)
Fires the Shutdown event.
public override Task HandleModelShutdown(object model, ShutdownEventArgs reason)
Parameters
model
objectreason
ShutdownEventArgs
Returns
Events
Received
Event fired when a delivery arrives for the consumer.
public event AsyncEventHandler<BasicDeliverEventArgs> Received
Event Type
Remarks
Handlers must copy or fully use delivery body before returning. Accessing the body at a later point is unsafe as its memory can be already released.
Registered
Fires when the server confirms successful consumer cancelation.
public event AsyncEventHandler<ConsumerEventArgs> Registered
Event Type
Shutdown
Fires on model (channel) shutdown, both client and server initiated.
public event AsyncEventHandler<ShutdownEventArgs> Shutdown
Event Type
Unregistered
Fires when the server confirms successful consumer cancelation.
public event AsyncEventHandler<ConsumerEventArgs> Unregistered