Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

XmlMessageConverter.ToMessage Method

Convert a .NET object to a NMS Message using the supplied session to create the message object.

[Visual Basic]
Public NotOverridable Sub ToMessage( _
   ByVal objectToConvert As Object, _
   ByVal session As ISession _
) _
    Implements IMessageConverter.ToMessage
[C#]
public IMessage ToMessage(
   object objectToConvert,
   ISession session
);

Parameters

objectToConvert
the object to convert
session
the Session to use for creating a NMS Message

Return Value

the NMS Message

Implements

IMessageConverter.ToMessage

See Also

XmlMessageConverter Class | Spring.Messaging.Nms.Support.Converter Namespace