Extends the contract defined by ICurrentSessionContext by providing methods to bind and unbind sessions to the current context.

Namespace:  NHibernate.Context
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public MustInherit Class CurrentSessionContext _
	Implements ICurrentSessionContext
C#
[SerializableAttribute]
public abstract class CurrentSessionContext : ICurrentSessionContext
Visual C++
[SerializableAttribute]
public ref class CurrentSessionContext abstract : ICurrentSessionContext
JavaScript
NHibernate.Context.CurrentSessionContext = function();

Type.createClass(
	'NHibernate.Context.CurrentSessionContext',
	null,
	NHibernate.Context.ICurrentSessionContext);

Remarks

The notion of a contextual session is managed by some external entity (generally some form of interceptor like the HttpModule). This external manager is responsible for scoping these contextual sessions appropriately binding/unbinding them here for exposure to the application through GetCurrentSession()()() calls.

Inheritance Hierarchy

See Also