Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.SendWithDelegate(String, MessageCreatorDelegate) Method

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

[Visual Basic]
Public NotOverridable Overloads Sub SendWithDelegate( _
   ByVal destinationName As String, _
   ByVal messageCreatorDelegate As MessageCreatorDelegate _
) _
    Implements IEmsOperations.SendWithDelegate
[C#]
public void SendWithDelegate(
   string destinationName,
   MessageCreatorDelegate messageCreatorDelegate
);

Parameters

destinationName
the name of the destination to send this message to (to be resolved to an actual destination by a DestinationResolver)
messageCreatorDelegate
delegate callback to create a message

Implements

IEmsOperations.SendWithDelegate

Exceptions

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

See Also

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