Class BasicDeliverEventArgs
Contains all the information about a message delivered from an AMQP broker within the Basic content-class.
public class BasicDeliverEventArgs : EventArgs
- Inheritance
-
BasicDeliverEventArgs
- Inherited Members
Constructors
BasicDeliverEventArgs()
Default constructor.
public BasicDeliverEventArgs()
BasicDeliverEventArgs(string, ulong, bool, string, string, IBasicProperties, ReadOnlyMemory<byte>)
Constructor that fills the event's properties from its arguments.
public BasicDeliverEventArgs(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>
Properties
BasicProperties
The content header of the message.
public IBasicProperties BasicProperties { get; set; }
Property Value
Body
The message body.
public ReadOnlyMemory<byte> Body { get; set; }
Property Value
ConsumerTag
The consumer tag of the consumer that the message was delivered to.
public string ConsumerTag { get; set; }
Property Value
DeliveryTag
The delivery tag for this delivery. See IModel.BasicAck.
public ulong DeliveryTag { get; set; }
Property Value
Exchange
The exchange the message was originally published to.
public string Exchange { get; set; }
Property Value
Redelivered
The AMQP "redelivered" flag.
public bool Redelivered { get; set; }
Property Value
RoutingKey
The routing key used when the message was originally published.
public string RoutingKey { get; set; }