Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.ConvertAndSendWithDelegate(Destination, Object, MessagePostProcessorDelegate) Method

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

[Visual Basic]
Public NotOverridable Overloads Sub ConvertAndSendWithDelegate( _
   ByVal destination As Destination, _
   ByVal message As Object, _
   ByVal postProcessor As MessagePostProcessorDelegate _
) _
    Implements IEmsOperations.ConvertAndSendWithDelegate
[C#]
public void ConvertAndSendWithDelegate(
   Destination destination,
   object message,
   MessagePostProcessorDelegate postProcessor
);

Parameters

destination
the destination to send this message to
message
the object to convert to a message
postProcessor
the callback to modify the message

Implements

IEmsOperations.ConvertAndSendWithDelegate

Exceptions

Exception Type Condition
EMSException If there is any problem accessing the EMS API

See Also

EmsTemplate Class | Spring.Messaging.Ems.Core Namespace | EmsTemplate.ConvertAndSendWithDelegate Overload List