Class BasicDeliverEventArgs
Contains all the information about a message delivered from an AMQP broker within the Basic content-class.
Inherited Members
Namespace: RabbitMQ.Client.Events
Assembly: RabbitMQ.Client.dll
Syntax
public class BasicDeliverEventArgs : EventArgs
Constructors
| Edit this page View SourceBasicDeliverEventArgs()
Default constructor.
Declaration
public BasicDeliverEventArgs()
BasicDeliverEventArgs(string, ulong, bool, string, string, IBasicProperties, ReadOnlyMemory<byte>)
Constructor that fills the event's properties from its arguments.
Declaration
public BasicDeliverEventArgs(string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, ReadOnlyMemory<byte> body)
Parameters
Type | Name | Description |
---|---|---|
string | consumerTag | |
ulong | deliveryTag | |
bool | redelivered | |
string | exchange | |
string | routingKey | |
IBasicProperties | properties | |
ReadOnlyMemory<byte> | body |
Properties
| Edit this page View SourceBasicProperties
The content header of the message.
Declaration
public IBasicProperties BasicProperties { get; set; }
Property Value
Type | Description |
---|---|
IBasicProperties |
Body
The message body.
Declaration
public ReadOnlyMemory<byte> Body { get; set; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<byte> |
ConsumerTag
The consumer tag of the consumer that the message was delivered to.
Declaration
public string ConsumerTag { get; set; }
Property Value
Type | Description |
---|---|
string |
DeliveryTag
The delivery tag for this delivery. See IModel.BasicAck.
Declaration
public ulong DeliveryTag { get; set; }
Property Value
Type | Description |
---|---|
ulong |
Exchange
The exchange the message was originally published to.
Declaration
public string Exchange { get; set; }
Property Value
Type | Description |
---|---|
string |
Redelivered
The AMQP "redelivered" flag.
Declaration
public bool Redelivered { get; set; }
Property Value
Type | Description |
---|---|
bool |
RoutingKey
The routing key used when the message was originally published.
Declaration
public string RoutingKey { get; set; }
Property Value
Type | Description |
---|---|
string |