Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IEmsOperations.ConvertAndSendWithDelegate(Object, MessagePostProcessorDelegate) Method

Send the given object to the default destination, converting the object to a EMS message with a configured IMessageConverter. The IMessagePostProcessor callback allows for modification of the message after conversion.

This will only work with a default destination specified!

[Visual Basic]
Public Sub ConvertAndSendWithDelegate( _
   ByVal message As Object, _
   ByVal postProcessor As MessagePostProcessorDelegate _
void ConvertAndSendWithDelegate(
   object message,
   MessagePostProcessorDelegate postProcessor


the object to convert to a message
the callback to modify the message


Exception TypeCondition
EMSExceptionIf there is any problem accessing the EMS API

See Also

IEmsOperations Interface | Spring.Messaging.Ems.Core Namespace | IEmsOperations.ConvertAndSendWithDelegate Overload List