Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.Send(String, 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 destinationName As String, _
   ByVal messageCreator As IMessageCreator _
) _
    Implements IEmsOperations.Send
[C#]
public void Send(
   string destinationName,
   IMessageCreator messageCreator
);

Parameters

destinationName
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