Click or drag to resize

SessionPoolGetSession Method

Get a session locked for use by caller.

Namespace:  VelocityDb.Session
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public SessionBase GetSession(
	out int identifier
)

Parameters

identifier
Type: SystemInt32
The id of the returned session. Make sure you always call FreeSession with this id provided or else session is locked forever. One way is to call FreeSession in a finally block.

Return Value

Type: SessionBase
A reserved/locked session
See Also