Click or drag to resize

DefaultPooledRegistrationPolicyTPooledObject Class

Inheritance Hierarchy
SystemObject
  Autofac.PoolingDefaultPooledRegistrationPolicyTPooledObject

Namespace:  Autofac.Pooling
Assembly:  Autofac.Pooling (in Autofac.Pooling.dll) Version: 1.0.1+e2b1e849d21d04643649a531a7435392bb1a29cd
Syntax
public class DefaultPooledRegistrationPolicy<TPooledObject> : IPooledRegistrationPolicy<TPooledObject>
where TPooledObject : class

Type Parameters

TPooledObject
The type of object being pooled.

The DefaultPooledRegistrationPolicyTPooledObject type exposes the following members.

Constructors
  NameDescription
Public methodDefaultPooledRegistrationPolicyTPooledObject
Initializes a new instance of the DefaultPooledRegistrationPolicyTPooledObject class.
Public methodDefaultPooledRegistrationPolicyTPooledObject(Int32)
Initializes a new instance of the DefaultPooledRegistrationPolicyTPooledObject class.
Top
Properties
  NameDescription
Public propertyMaximumRetained
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.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also