CachingConnectionFactory.GetCachedSessionWrapper Method
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CachingConnectionFactory.GetCachedSessionWrapper Method

Wraps the given Session so that it delegates every method call to the target session but adapts close calls. This is useful for allowing application code to handle a special framework Session just like an ordinary Session.

[Visual Basic]
Protected Overridable Sub GetCachedSessionWrapper( _
   ByVal targetSession As ISession, _
   ByVal sessionList As LinkedList _
protected virtual ISession GetCachedSessionWrapper(
   ISession targetSession,
   LinkedList sessionList


The original Session to wrap.
The List of cached Sessions that the given Session belongs to.

Return Value

The wrapped Session

See Also

CachingConnectionFactory Class | Spring.Messaging.Ems.Connections Namespace