Table of Contents

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

bool

IsReturnListener

Gets a value indicating whether this is a returns listener

bool IsReturnListener { get; }

Property Value

bool

UUID

Gets the UUID used to identify this listener for returns

string UUID { get; }

Property Value

string

Methods

HandleConfirm(PendingConfirm, bool)

Invoked by the channel when a confirmation is received

void HandleConfirm(PendingConfirm pendingConfirm, bool ack)

Parameters

pendingConfirm PendingConfirm

the pending confirmation

ack bool

true 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 int

the reason code of the return

replyText string

the text from the broker describing the return

exchange string

the exchange the returned message was originally published to.

routingKey string

the routing key used when the message was originally published.

properties IBasicProperties

the 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 IModel

the channel