Class BasicGetResult
Represents Basic.GetOk responses from the server.
Inherited Members
Namespace: RabbitMQ.Client
Assembly: Apigen.dll
Syntax
public class BasicGetResult
Remarks
Basic.Get either returns an instance of this class, or null if a Basic.GetEmpty was received.
Constructors
| Edit this page View SourceBasicGetResult(ulong, bool, string, string, uint, IBasicProperties, ReadOnlyMemory<byte>)
Sets the new instance's properties from the arguments passed in.
Declaration
public BasicGetResult(ulong deliveryTag, bool redelivered, string exchange, string routingKey, uint messageCount, IBasicProperties basicProperties, ReadOnlyMemory<byte> body)
Parameters
Type | Name | Description |
---|---|---|
ulong | deliveryTag | Delivery tag for the message. |
bool | redelivered | Redelivered flag for the message |
string | exchange | The exchange this message was published to. |
string | routingKey | Routing key with which the message was published. |
uint | messageCount | The number of messages pending on the queue, excluding the message being delivered. |
IBasicProperties | basicProperties | The Basic-class content header properties for the message. |
ReadOnlyMemory<byte> | body |
Properties
| Edit this page View SourceBasicProperties
Retrieves the Basic-class content header properties for this message.
Declaration
public IBasicProperties BasicProperties { get; }
Property Value
Type | Description |
---|---|
IBasicProperties |
Body
Retrieves the body of this message.
Declaration
public ReadOnlyMemory<byte> Body { get; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<byte> |
DeliveryTag
Retrieve the delivery tag for this message. See also BasicAck(ulong, bool).
Declaration
public ulong DeliveryTag { get; }
Property Value
Type | Description |
---|---|
ulong |
Exchange
Retrieve the exchange this message was published to.
Declaration
public string Exchange { get; }
Property Value
Type | Description |
---|---|
string |
MessageCount
Retrieve the number of messages pending on the queue, excluding the message being delivered.
Declaration
public uint MessageCount { get; }
Property Value
Type | Description |
---|---|
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.
Declaration
public bool Redelivered { get; }
Property Value
Type | Description |
---|---|
bool |
RoutingKey
Retrieve the routing key with which this message was published.
Declaration
public string RoutingKey { get; }
Property Value
Type | Description |
---|---|
string |