Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.ConvertAndSend(Object, IMessagePostProcessor) 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 NotOverridable Overloads Sub ConvertAndSend( _
   ByVal message As Object, _
   ByVal postProcessor As IMessagePostProcessor _
) _
    Implements IEmsOperations.ConvertAndSend
[C#]
public void ConvertAndSend(
   object message,
   IMessagePostProcessor postProcessor
);

Parameters

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

Implements

IEmsOperations.ConvertAndSend

Exceptions

Exception TypeCondition
EMSExceptionIf there is any problem accessing the EMS API

See Also

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