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