Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SpringSessionContext Class

Implementation of NHibernates 1.2's ICurrentSessionContext interface that delegates to Spring's SessionFactoryUtils for providing a Spirng-managed current Session.

For a list of all members of this type, see SpringSessionContext Members .

System.Object
   SpringSessionContext

[Visual Basic]
Public Class SpringSessionContext
    Implements ICurrentSessionContext
[C#]
public class SpringSessionContext : ICurrentSessionContext

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Used by Spring's LocalSessionFactoryBean if told to expose a transaction-aware SessionFactory.

This ICurrentSessionContext implementation can also be specified in custom ISessionFactory setup through the "hibernate.current_session_context_class" property, with the fully qualified name of this class as value.

Requirements

Namespace: Spring.Data.NHibernate

Assembly: Spring.Data.NHibernate21 (in Spring.Data.NHibernate21.dll)

See Also

SpringSessionContext Members | Spring.Data.NHibernate Namespace