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

Initializes a new instance of the ResourceQueueCollectionTKey, TResource class with a custom instance creation function, initial counts, 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,
	Func<TKey, int> initialCount,
	Func<TKey, int> maximumCount
)

Parameters

instance  FuncTKey, FuncTResource
A function that returns the instance creation function for each key.
initialCount  FuncTKey, Int32
A function that specifies the initial count for each queue based on the key.
maximumCount  FuncTKey, Int32
A function that specifies the maximum count for each queue based on the key.

See Also