Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageQueueTemplate.ConvertAndSend(Object, MessagePostProcessorDelegate) Method

Send the given object to the default destination, converting the object to a MSMQ 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 obj As Object, _
   ByVal messagePostProcessorDelegate As MessagePostProcessorDelegate _
) _
    Implements IMessageQueueOperations.ConvertAndSend
[C#]
public void ConvertAndSend(
   object obj,
   MessagePostProcessorDelegate messagePostProcessorDelegate
);

Parameters

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

Implements

IMessageQueueOperations.ConvertAndSend

Exceptions

Exception TypeCondition
MessagingExceptionif thrown by MSMQ API methods

See Also

MessageQueueTemplate Class | Spring.Messaging.Core Namespace | MessageQueueTemplate.ConvertAndSend Overload List