Click or drag to resize

SessionPool Class

Provides a pool of sessions for reuse instead of creating new session instances every time a session is needed. The pooled sessions includes cached databases, pages and objects. Keep the pool size to a minimum too avoid excessive memory usage.
Inheritance Hierarchy
SystemObject
  VelocityDb.SessionSessionPool

Namespace:  VelocityDb.Session
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public class SessionPool : IDisposable, 
	IComparable<SessionPool>

The SessionPool type exposes the following members.

Constructors
  NameDescription
Public methodSessionPool
Creates a session pool, store this pool somewhere where tour application threads can get to it.
Top
Methods
  NameDescription
Public methodDispose
Disposes all sessions in this pool
Public methodFreeSession
Always call this function so that your session is unlocked and becomes available to others
Public methodGetSession
Get a session locked for use by caller.
Top
See Also