Table of Contents

Class BasicGetResult

Namespace
RabbitMQ.Client
Assembly
RabbitMQ.Client.dll

Represents Basic.GetOk responses from the server.

public 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, IBasicProperties, 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, IBasicProperties 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 IBasicProperties

The Basic-class content header properties for the message.

body ReadOnlyMemory<byte>

Properties

BasicProperties

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

public IBasicProperties BasicProperties { get; }

Property Value

IBasicProperties

Body

Retrieves the body of this message.

public ReadOnlyMemory<byte> Body { get; }

Property Value

ReadOnlyMemory<byte>

DeliveryTag

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

public ulong DeliveryTag { get; }

Property Value

ulong

Exchange

Retrieve the exchange this message was published to.

public string Exchange { get; }

Property Value

string

MessageCount

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

public uint MessageCount { get; }

Property 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 bool Redelivered { get; }

Property Value

bool

RoutingKey

Retrieve the routing key with which this message was published.

public string RoutingKey { get; }

Property Value

string