Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.Send(Destination, IMessageCreator) Method

Send a message to the specified destination. The MessageCreator callback creates the message given a Session.

[Visual Basic]
Public NotOverridable Overloads Sub Send( _
   ByVal destination As Destination, _
   ByVal messageCreator As IMessageCreator _
) _
    Implements IEmsOperations.Send
[C#]
public void Send(
   Destination destination,
   IMessageCreator messageCreator
);

Parameters

destination
the destination to send this message to
messageCreator
callback to create a message

Implements

IEmsOperations.Send

Exceptions

Exception Type Condition
EMSException If there is any problem accessing the EMS API

See Also

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