Spring.Messaging.Amqp.Rabbit
BuildMessage Method
See Also  Send Feedback
Spring.Messaging.Amqp.Rabbit.Listener.Adapter Namespace > MessageListenerAdapter Class : BuildMessage Method
channel
The Rabbit Channel to operate on.
result
The content of the message, as returned from the listener method.
Builds a Rabbit message to be sent as response based on the given result object.

Syntax

C# 
protected virtual Message BuildMessage( 
   IModel channel,
   object result
)

Parameters

channel
The Rabbit Channel to operate on.
result
The content of the message, as returned from the listener method.

Return Value

the Rabbit
Message
(never
null
)

Exceptions

ExceptionDescription
Spring.Messaging.Amqp.Support.Converter.MessageConversionExceptionIf there was an error in message conversion

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.