IBasicConsumer
Known direct subtypes:
EventingBasicConsumer, QueueingBasicConsumer
| Flags | Type | Name | Summary |
|---|---|---|---|
| public |
string
|
ConsumerTag
(rw)
|
Retrieve the consumer tag this consumer is registered as; to be used when discussing this consumer with the server, for instance with IModel.BasicCancel(). |
| public |
bool
|
IsRunning
(r)
|
Returns true while the consumer is registered and expecting deliveries from the broker. |
| public virtual final |
IModel
|
Model
(rw)
|
Retrieve the IModel instance this consumer is registered with. |
| public |
ShutdownEventArgs
|
ShutdownReason
(r)
|
If our IModel shuts down, this property will contain a description of the reason for the shutdown. Otherwise it will contain null. See ShutdownEventArgs. |
| Flags | Name | Summary |
|---|---|---|
| public |
DefaultBasicConsumer(IModel model)
|
Constructor which sets the Model property to the given value. |
| public |
DefaultBasicConsumer()
|
Default constructor. |
| Flags | Name | Summary |
|---|---|---|
| public virtual |
void HandleBasicCancelOk(string consumerTag)
|
Default implementation - calls OnCancel(). |
| public virtual |
void HandleBasicConsumeOk(string consumerTag)
|
Default implementation - sets the ConsumerTag property and sets IsRunning to true. |
| public virtual |
void HandleBasicDeliver(string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, byte[] body)
|
Default implementation - override in subclasses. |
| public virtual |
void HandleModelShutdown(IModel model, ShutdownEventArgs reason)
|
Default implementation - sets ShutdownReason and calls OnCancel(). |
| public virtual |
void OnCancel()
|
Default implementation - overridable in subclasses. |
public
DefaultBasicConsumer(IModel model)
| Parameters |
|
|---|
public virtual
void HandleBasicCancelOk(string consumerTag)
| Flags | public virtual | ||||
|---|---|---|---|---|---|
| Return type |
void
|
||||
| Parameters |
|
public virtual
void HandleBasicConsumeOk(string consumerTag)
| Flags | public virtual | ||||
|---|---|---|---|---|---|
| Return type |
void
|
||||
| Parameters |
|
public virtual
void HandleBasicDeliver(string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, byte[] body)
| Flags | public virtual | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type |
void
|
||||||||||||||||
| Parameters |
|
public virtual
void HandleModelShutdown(IModel model, ShutdownEventArgs reason)
| Flags | public virtual | ||||||
|---|---|---|---|---|---|---|---|
| Return type |
void
|
||||||
| Parameters |
|
public virtual
void OnCancel()
| Flags | public virtual |
|---|---|
| Return type |
void
|