Spring.Messaging.Amqp.Rabbit
GetResponseReplyTo Method
See Also  Send Feedback
Spring.Messaging.Amqp.Rabbit.Listener.Adapter Namespace > MessageListenerAdapter Class : GetResponseReplyTo Method
request
The original incoming message.
response
Tthe outgoing message about to be sent.
channel
The channel to operate on.
Determine a response destination for the given message.

Syntax

C# 
protected virtual string GetResponseReplyTo( 
   Message request,
   Message response,
   IModel channel
)

Parameters

request
The original incoming message.
response
Tthe outgoing message about to be sent.
channel
The channel to operate on.

Return Value

the response destination (never
null
)

Exceptions

ExceptionDescription
InvalidOperationExceptionif no destination can be determined.

Remarks

The default implementation first checks the Rabbit ReplyTo property of the supplied request; if that is not

null
it is returned; if it is
null
, then the configured DefaultResponseRoutingKey default response routing key} is returned; if this too is
null
, then an InvalidOperationExceptionis thrown.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010 All Rights Reserved.