ObjectPoolT Constructor Ipswitch.Messaging.Framework
ObjectPool constructor.

Namespace: IMailAPI_NET
Assembly: IMailAPI_NET (in IMailAPI_NET.dll) Version: 1.0.0.0
Syntax

public ObjectPool(
	int MinItems,
	int MaxItems,
	int ItemLifeSpanMinutes,
	ObjectPoolTOnCreateDelegate OnCreateHandler = null,
	ObjectPoolTOnCleanUpDelegate OnCleanUpHandler = null,
	ObjectPoolTOnAcquireDelegate OnAcquireHandler = null
)

Parameters

MinItems
Type: SystemInt32
Minimum number of items in pool. The constructor will create these items, calling OnCreateHandler if supplied.
MaxItems
Type: SystemInt32
Maximum number of items in pool. Acquire() will return default values when this threshold is reached.
ItemLifeSpanMinutes
Type: SystemInt32
The longest an item should exist. Items that exceed their lifespan are removed and cleaned up.
OnCreateHandler (Optional)
Type: IMailAPI_NETObjectPoolTOnCreateDelegate
Event handler to call when a new item is created for the pool.
OnCleanUpHandler (Optional)
Type: IMailAPI_NETObjectPoolTOnCleanUpDelegate
Event handler to call when an expired item is removed from the pool.
OnAcquireHandler (Optional)
Type: IMailAPI_NETObjectPoolTOnAcquireDelegate

[Missing <param name="OnAcquireHandler"/> documentation for "M:IMailAPI_NET.ObjectPool`1.#ctor(System.Int32,System.Int32,System.Int32,IMailAPI_NET.ObjectPool{`0}.OnCreateDelegate,IMailAPI_NET.ObjectPool{`0}.OnCleanUpDelegate,IMailAPI_NET.ObjectPool{`0}.OnAcquireDelegate)"]

See Also

Reference