Class AsyncEventingBasicConsumer
Inheritance
AsyncEventingBasicConsumer
Assembly: RabbitMQ.Client.dll
Syntax
public class AsyncEventingBasicConsumer : AsyncDefaultBasicConsumer, IBasicConsumer, IAsyncBasicConsumer
Constructors
|
Edit this page
View Source
AsyncEventingBasicConsumer(IModel)
Constructor which sets the Model property to the
given value.
Declaration
public AsyncEventingBasicConsumer(IModel model)
Parameters
Type |
Name |
Description |
IModel |
model |
|
Methods
|
Edit this page
View Source
HandleBasicCancelOk(string)
Fires when the server confirms successful consumer cancelation.
Declaration
public override Task HandleBasicCancelOk(string consumerTag)
Parameters
Type |
Name |
Description |
string |
consumerTag |
|
Returns
Overrides
|
Edit this page
View Source
HandleBasicConsumeOk(string)
Fires when the server confirms successful consumer registration.
Declaration
public override Task HandleBasicConsumeOk(string consumerTag)
Parameters
Type |
Name |
Description |
string |
consumerTag |
|
Returns
Overrides
|
Edit this page
View Source
HandleBasicDeliver(string, ulong, bool, string, string, IBasicProperties, ReadOnlyMemory<byte>)
Fires the Received event.
Declaration
public override Task HandleBasicDeliver(string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, ReadOnlyMemory<byte> body)
Parameters
Returns
Overrides
|
Edit this page
View Source
HandleModelShutdown(object, ShutdownEventArgs)
Fires the Shutdown event.
Declaration
public override Task HandleModelShutdown(object model, ShutdownEventArgs reason)
Parameters
Returns
Overrides
Events
|
Edit this page
View Source
Received
Event fired when a delivery arrives for the consumer.
Declaration
public event AsyncEventHandler<BasicDeliverEventArgs> Received
Event Type
|
Edit this page
View Source
Registered
Fires when the server confirms successful consumer cancelation.
Declaration
public event AsyncEventHandler<ConsumerEventArgs> Registered
Event Type
|
Edit this page
View Source
Shutdown
Fires on model (channel) shutdown, both client and server initiated.
Declaration
public event AsyncEventHandler<ShutdownEventArgs> Shutdown
Event Type
|
Edit this page
View Source
Unregistered
Fires when the server confirms successful consumer cancelation.
Declaration
public event AsyncEventHandler<ConsumerEventArgs> Unregistered
Event Type
Implements