Table of Contents

Class BasicReturnEventArgs

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

Contains all the information about a message returned from an AMQP broker within the Basic content-class.

public class BasicReturnEventArgs : AsyncEventArgs
Inheritance
BasicReturnEventArgs
Inherited Members

Constructors

BasicReturnEventArgs(ushort, string, string, string, IReadOnlyBasicProperties, ReadOnlyMemory<byte>, CancellationToken)

public BasicReturnEventArgs(ushort replyCode, string replyText, string exchange, string routingKey, IReadOnlyBasicProperties basicProperties, ReadOnlyMemory<byte> body, CancellationToken cancellationToken = default)

Parameters

replyCode ushort
replyText string
exchange string
routingKey string
basicProperties IReadOnlyBasicProperties
body ReadOnlyMemory<byte>
cancellationToken CancellationToken

Fields

BasicProperties

The content header of the message.

public readonly IReadOnlyBasicProperties BasicProperties

Field Value

IReadOnlyBasicProperties

Body

The message body.

public readonly ReadOnlyMemory<byte> Body

Field Value

ReadOnlyMemory<byte>

Exchange

The exchange the returned message was originally published to.

public readonly string Exchange

Field Value

string

ReplyCode

The AMQP reason code for the return. See RabbitMQ.Client.Framing.*.Constants.

public readonly ushort ReplyCode

Field Value

ushort

ReplyText

Human-readable text from the broker describing the reason for the return.

public readonly string ReplyText

Field Value

string

RoutingKey

The routing key used when the message was originally published.

public readonly string RoutingKey

Field Value

string