Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IMessageConverter.ToMessage Method

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

[Visual Basic]
Public Sub ToMessage( _
   ByVal objectToConvert As Object, _
   ByVal session As ISession _
)
[C#]
Message ToMessage(
   object objectToConvert,
   ISession session
);

Parameters

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

Return Value

the EMS Message

See Also

IMessageConverter Interface | Spring.Messaging.Ems.Support.Converter Namespace