Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SpringSessionContext.CurrentSession Method

Retrieve the Spring-managed Session for the current thread.

[Visual Basic]
Public NotOverridable Sub CurrentSession() _
    Implements ICurrentSessionContext.CurrentSession
[C#]
public ISession CurrentSession();

Return Value

Current session associated with the thread

Implements

ICurrentSessionContext.CurrentSession

Exceptions

Exception Type Condition
HibernateException On errors retrieving thread bound session.

See Also

SpringSessionContext Class | Spring.Data.NHibernate Namespace