Interface IPublisherCallbackChannel.IListener
- Namespace
- Steeltoe.Messaging.RabbitMQ.Connection
- Assembly
- Steeltoe.Messaging.RabbitMQ.dll
public interface IPublisherCallbackChannel.IListener
Properties
IsConfirmListener
Gets a value indicating whether this is a confirm listener
bool IsConfirmListener { get; }
Property Value
IsReturnListener
Gets a value indicating whether this is a returns listener
bool IsReturnListener { get; }
Property Value
UUID
Gets the UUID used to identify this listener for returns
string UUID { get; }
Property Value
Methods
HandleConfirm(PendingConfirm, bool)
Invoked by the channel when a confirmation is received
void HandleConfirm(PendingConfirm pendingConfirm, bool ack)
Parameters
pendingConfirm
PendingConfirmthe pending confirmation
ack
booltrue when an ack; false when a nack
HandleReturn(int, string, string, string, IBasicProperties, byte[])
Invoked when a basic return command is received
void HandleReturn(int replyCode, string replyText, string exchange, string routingKey, IBasicProperties properties, byte[] body)
Parameters
replyCode
intthe reason code of the return
replyText
stringthe text from the broker describing the return
exchange
stringthe exchange the returned message was originally published to.
routingKey
stringthe routing key used when the message was originally published.
properties
IBasicPropertiesthe content header of the message.
body
byte[]the body of the message
Revoke(IModel)
When called this listener should remove all references to the channel
void Revoke(IModel channel)
Parameters
channel
IModelthe channel