ResourceQueueCollectionTKey, TResource(FuncTKey, FuncTResource, Int32, Int32) Constructor

Initializes a new instance of the ResourceQueueCollectionTKey, TResource class with a custom instance creation function and initial and maximum counts.

Definition

Namespace: SnapDB.Collections
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public ResourceQueueCollection(
	Func<TKey, Func<TResource>> instance,
	int initialCount,
	int maximumCount
)

Parameters

instance  FuncTKey, FuncTResource
A function that returns the instance creation function for each key.
initialCount  Int32
The initial number of resources in each queue.
maximumCount  Int32
The maximum number of resources in each queue.

See Also