IPooledRegistrationPolicyTPooledObject Interface |
Namespace: Autofac.Pooling
The IPooledRegistrationPolicyTPooledObject type exposes the following members.
Name | Description | |
---|---|---|
MaximumRetained |
Gets a value indicating the maximum number of items that will be retained in the pool. This is not a limit on the number of
objects that can be created, it's the threshold past which any objects returned to the pool will be discarded.
|
Name | Description | |
---|---|---|
Get |
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.
| |
Return |
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).
|