Table of Contents

Class BasicDeliverEventArgs

Namespace
RabbitMQ.Client.Events
Assembly
RabbitMQ.Client.dll

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 string
deliveryTag ulong
redelivered bool
exchange string
routingKey string
properties IBasicProperties
body ReadOnlyMemory<byte>

Properties

BasicProperties

The content header of the message.

public IBasicProperties BasicProperties { get; set; }

Property Value

IBasicProperties

Body

The message body.

public ReadOnlyMemory<byte> Body { get; set; }

Property Value

ReadOnlyMemory<byte>

ConsumerTag

The consumer tag of the consumer that the message was delivered to.

public string ConsumerTag { get; set; }

Property Value

string

DeliveryTag

The delivery tag for this delivery. See IModel.BasicAck.

public ulong DeliveryTag { get; set; }

Property Value

ulong

Exchange

The exchange the message was originally published to.

public string Exchange { get; set; }

Property Value

string

Redelivered

The AMQP "redelivered" flag.

public bool Redelivered { get; set; }

Property Value

bool

RoutingKey

The routing key used when the message was originally published.

public string RoutingKey { get; set; }

Property Value

string