Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsResourceHolder.GetSession(Type, IConnection) Method

Gets the session of a given type associated with the given connection

[Visual Basic]
Public Overridable Overloads Sub GetSession( _
   ByVal sessionType As Type, _
   ByVal connection As IConnection _
)
[C#]
public virtual ISession GetSession(
   Type sessionType,
   IConnection connection
);

Parameters

sessionType
Type of the session.
connection
The connection.

Return Value

The sessin or null if not available.

See Also

NmsResourceHolder Class | Spring.Messaging.Nms.Connections Namespace | NmsResourceHolder.GetSession Overload List