Table of Contents

Class BasicGetResult

Namespace
RabbitMQ.Client
Assembly
RabbitMQ.Client.dll

Represents Basic.GetOk responses from the server.

public sealed class BasicGetResult
Inheritance
BasicGetResult
Inherited Members

Remarks

Basic.Get either returns an instance of this class, or null if a Basic.GetEmpty was received.

Constructors

BasicGetResult(ulong, bool, string, string, uint, IReadOnlyBasicProperties, ReadOnlyMemory<byte>)

Sets the new instance's properties from the arguments passed in.

public BasicGetResult(ulong deliveryTag, bool redelivered, string exchange, string routingKey, uint messageCount, IReadOnlyBasicProperties basicProperties, ReadOnlyMemory<byte> body)

Parameters

deliveryTag ulong

Delivery tag for the message.

redelivered bool

Redelivered flag for the message

exchange string

The exchange this message was published to.

routingKey string

Routing key with which the message was published.

messageCount uint

The number of messages pending on the queue, excluding the message being delivered.

basicProperties IReadOnlyBasicProperties

The Basic-class content header properties for the message.

body ReadOnlyMemory<byte>

The body

Fields

BasicProperties

Retrieves the Basic-class content header properties for this message.

public readonly IReadOnlyBasicProperties BasicProperties

Field Value

IReadOnlyBasicProperties

Body

Retrieves the body of this message.

public readonly ReadOnlyMemory<byte> Body

Field Value

ReadOnlyMemory<byte>

DeliveryTag

Retrieve the delivery tag for this message. See also BasicAckAsync(ulong, bool, CancellationToken).

public readonly ulong DeliveryTag

Field Value

ulong

Exchange

Retrieve the exchange this message was published to.

public readonly string Exchange

Field Value

string

MessageCount

Retrieve the number of messages pending on the queue, excluding the message being delivered.

public readonly uint MessageCount

Field Value

uint

Remarks

Note that this figure is indicative, not reliable, and can change arbitrarily as messages are added to the queue and removed by other clients.

Redelivered

Retrieve the redelivered flag for this message.

public readonly bool Redelivered

Field Value

bool

RoutingKey

Retrieve the routing key with which this message was published.

public readonly string RoutingKey

Field Value

string