Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsTemplate.ConvertAndSendWithDelegate(Object, MessagePostProcessorDelegate) Method

Send the given object to the default destination, converting the object to a NMS 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 NotOverridable Overloads Sub ConvertAndSendWithDelegate( _
   ByVal message As Object, _
   ByVal postProcessor As MessagePostProcessorDelegate _
) _
    Implements INmsOperations.ConvertAndSendWithDelegate
[C#]
public void ConvertAndSendWithDelegate(
   object message,
   MessagePostProcessorDelegate postProcessor
);

Parameters

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

Implements

INmsOperations.ConvertAndSendWithDelegate

See Also

NmsTemplate Class | Spring.Messaging.Nms.Core Namespace | NmsTemplate.ConvertAndSendWithDelegate Overload List