The CurrentSessionContext type exposes the following members.

Constructors

  NameDescription
CurrentSessionContext

Methods

  NameDescription
Bind
Binds the specified session to the current context.
CurrentSession
Retrieve the current session according to the scoping defined by this implementation.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
HasBind
Returns whether there is a session bound to the current context.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Unbind
Unbinds and returns the current session.

Properties

  NameDescription
Session
Gets or sets the currently bound session.

See Also