Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.Execute(ISessionCallback) Method

Execute the action specified by the given action object within a EMS Session.

Note: The value of PubSubDomain affects the behavior of this method. If PubSubDomain equals true, then a Session is passed to the callback. If false, then a Session is passed to the callback.

[Visual Basic]
Public NotOverridable Overloads Sub Execute( _
   ByVal action As ISessionCallback _
) _
    Implements IEmsOperations.Execute
[C#]
public object Execute(
   ISessionCallback action
);

Parameters

action
callback object that exposes the session

Return Value

the result object from working with the session

Implements

IEmsOperations.Execute

Exceptions

Exception TypeCondition
EMSExceptionIf there is any problem accessing the EMS API

See Also

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