Click or drag to resize

IPooledRegistrationPolicyTPooledObjectReturn Method

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).

Namespace:  Autofac.Pooling
Assembly:  Autofac.Pooling (in Autofac.Pooling.dll) Version: 1.0.1+e2b1e849d21d04643649a531a7435392bb1a29cd
Syntax
bool Return(
	TPooledObject pooledObject
)

Parameters

pooledObject
Type: TPooledObject
The pooled object.

Return Value

Type: Boolean
True if the object should be returned to the pool. False if it should not be placed back in the pool (and will be disposed immediately if it implements IDisposable).
See Also