Class BasicDeliverEventArgs
Contains all the information about a message delivered from an AMQP broker within the Basic content-class.
Inheritance
System.Object
System.EventArgs
BasicDeliverEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RabbitMQ.Client.Events
Assembly: RabbitMQ.Client.dll
Syntax
public class BasicDeliverEventArgs : EventArgs
Constructors
| Improve this Doc View SourceBasicDeliverEventArgs()
Default constructor.
Declaration
public BasicDeliverEventArgs()
BasicDeliverEventArgs(String, UInt64, Boolean, 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 |
---|---|---|
System.String | consumerTag | |
System.UInt64 | deliveryTag | |
System.Boolean | redelivered | |
System.String | exchange | |
System.String | routingKey | |
IBasicProperties | properties | |
System.ReadOnlyMemory<System.Byte> | body |
Properties
| Improve this Doc 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 |
---|---|
System.ReadOnlyMemory<System.Byte> |
ConsumerTag
The consumer tag of the consumer that the message was delivered to.
Declaration
public string ConsumerTag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DeliveryTag
The delivery tag for this delivery. See IModel.BasicAck.
Declaration
public ulong DeliveryTag { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Exchange
The exchange the message was originally published to.
Declaration
public string Exchange { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Redelivered
The AMQP "redelivered" flag.
Declaration
public bool Redelivered { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
RoutingKey
The routing key used when the message was originally published.
Declaration
public string RoutingKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |