ResourceQueueCollectionTKey, TResource(FuncTResource, Int32, Int32) Constructor

Initializes a new instance of the ResourceQueueCollectionTKey, TResource class with a default 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<TResource> instance,
	int initialCount,
	int maximumCount
)

Parameters

instance  FuncTResource
A function to create instances of the resource queues.
initialCount  Int32
The initial number of resources in each queue.
maximumCount  Int32
The maximum number of resources in each queue.

See Also