Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionFactoryUtils.ReleaseSession Method

Close the given Session, created via the given factory, if it is not managed externally (i.e. not bound to the thread).

[Visual Basic]
Public Shared Sub ReleaseSession( _
   ByVal session As ISession, _
   ByVal sessionFactory As ISessionFactory _
)
[C#]
public static void ReleaseSession(
   ISession session,
   ISessionFactory sessionFactory
);

Parameters

session
The hibernate session to close
sessionFactory
The hibernate SessionFactory that the session was created with.

See Also

SessionFactoryUtils Class | Spring.Data.NHibernate Namespace