Class BasicGetResult
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
ulongDelivery tag for the message.
redelivered
boolRedelivered flag for the message
exchange
stringThe exchange this message was published to.
routingKey
stringRouting key with which the message was published.
messageCount
uintThe number of messages pending on the queue, excluding the message being delivered.
basicProperties
IReadOnlyBasicPropertiesThe 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
Body
Retrieves the body of this message.
public readonly ReadOnlyMemory<byte> Body
Field Value
DeliveryTag
Retrieve the delivery tag for this message. See also BasicAckAsync(ulong, bool, CancellationToken).
public readonly ulong DeliveryTag
Field Value
Exchange
Retrieve the exchange this message was published to.
public readonly string Exchange
Field Value
MessageCount
Retrieve the number of messages pending on the queue, excluding the message being delivered.
public readonly uint MessageCount
Field Value
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
RoutingKey
Retrieve the routing key with which this message was published.
public readonly string RoutingKey