Click or drag to resize

IPooledRegistrationPolicyTPooledObject Methods

The IPooledRegistrationPolicyTPooledObject generic type exposes the following members.

Methods
  NameDescription
Public methodGet
Invoked when an instance of TPooledObject is requested. The policy can invoke getFromPool to retrieve an instance from the pool. Equally, it could decide to ignore the pool, and just return a custom instance.
Public methodReturn
Invoked when an object is about to be returned into the pool. This method should be used to clean up the state of the object after being used (resetting connections, releasing temporary resources, etc).
Top
See Also