[Missing <summary> documentation for "N:NHibernate.Context"]

Classes

  ClassDescription
Public classCallSessionContext
Provides a current session for each CallContext. Not recommended for .NET 2.0 web applications.
Public classCurrentSessionContext
Extends the contract defined by ICurrentSessionContext by providing methods to bind and unbind sessions to the current context.
Public classManagedWebSessionContext
Provides a current session for each System.Web.HttpContext. Works only with Web Applications.
Public classMapBasedSessionContext
Public classReflectiveHttpContext
This class allows access to the HttpContext without referring to HttpContext at compile time. The accessors are cached as delegates for performance.
Public classThreadLocalSessionContext
A ICurrentSessionContext impl which scopes the notion of current session by the current thread of execution. Threads do not give us a nice hook to perform any type of cleanup making it questionable for this impl to actually generate Session instances. In the interest of usability, it was decided to have this default impl actually generate a session upon first request and then clean it up after the ITransaction associated with that session is committed/rolled-back. In order for ensuring that happens, the sessions generated here are unusable until after {@link Session#beginTransaction()} has been called. If Close() is called on a session managed by this class, it will be automatically unbound.

Additionally, the static Bind(ISession) and Unbind(ISessionFactory) methods are provided to allow application code to explicitly control opening and closing of these sessions. This, with some from of interception, is the preferred approach. It also allows easy framework integration and one possible approach for implementing long-sessions.

Public classThreadStaticSessionContext
Provides a current session for each thread using the [ThreadStaticAttribute]. To avoid if there are two session factories in the same thread.
Public classWcfOperationSessionContext
Provides a current session for the current OperationContext in WCF. Works only during the lifetime of a WCF operation.
Public classWcfStateExtension
Public classWebSessionContext
Provides a current session for each System.Web.HttpContext. Works only with web applications.

Interfaces

  InterfaceDescription
Public interfaceICurrentSessionContext
Defines the contract for implementations which know how to scope the notion of a current session.