public class BasicGetResult

Summary

Represents Basic.GetOk responses from the server.

Remarks

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

Property Summary

Flags Type Name Summary
public IBasicProperties BasicProperties (r)

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

public byte[] Body (r)

Retrieves the body of this message.

public ulong DeliveryTag (r)

Retrieve the delivery tag for this message. See also IModel.BasicAck.

public string Exchange (r)

Retrieve the exchange this message was published to.

public uint MessageCount (r)

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

public bool Redelivered (r)

Retrieve the redelivered flag for this message.

public string RoutingKey (r)

Retrieve the routing key with which this message was published.

Constructor Summary

Flags Name Summary
public BasicGetResult(ulong deliveryTag, bool redelivered, string exchange, string routingKey, uint messageCount, IBasicProperties basicProperties, byte[] body)

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

Property Detail

public IBasicProperties BasicProperties (r)

Summary

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

public byte[] Body (r)

Summary

Retrieves the body of this message.

public ulong DeliveryTag (r)

Summary

Retrieve the delivery tag for this message. See also IModel.BasicAck.

public string Exchange (r)

Summary

Retrieve the exchange this message was published to.

public uint MessageCount (r)

Summary

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

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.

public bool Redelivered (r)

Summary

Retrieve the redelivered flag for this message.

public string RoutingKey (r)

Summary

Retrieve the routing key with which this message was published.

Constructor Detail

BasicGetResult

public BasicGetResult(ulong deliveryTag, bool redelivered, string exchange, string routingKey, uint messageCount, IBasicProperties basicProperties, byte[] body)

Parameters
Name Type
deliveryTag ulong
redelivered bool
exchange string
routingKey string
messageCount uint
basicProperties IBasicProperties
body byte[]

Summary

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