Class BasicGetResult
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
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
IBasicPropertiesThe 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
Body
Retrieves the body of this message.
public ReadOnlyMemory<byte> Body { get; }
Property Value
DeliveryTag
Retrieve the delivery tag for this message. See also BasicAck(ulong, bool).
public ulong DeliveryTag { get; }
Property Value
Exchange
Retrieve the exchange this message was published to.
public string Exchange { get; }
Property Value
MessageCount
Retrieve the number of messages pending on the queue, excluding the message being delivered.
public uint MessageCount { get; }
Property 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 bool Redelivered { get; }
Property Value
RoutingKey
Retrieve the routing key with which this message was published.
public string RoutingKey { get; }