Click or drag to resize

ProcessDictionaryTKey, TValue(ProcessQueueKeyValuePairTKey, TValueProcessItemsFunctionSignature, ProcessDictionaryTKey, TValueCanProcessItemFunctionSignature, Double, Int32, Int32, Boolean, Boolean) Constructor

Creates a bulk-item ProcessDictionaryTKey, TValue based on the generic DictionaryListTKey, TValue class.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public ProcessDictionary(
	ProcessQueueTProcessItemsFunctionSignature processItemsFunction,
	ProcessDictionaryTKey, TValueCanProcessItemFunctionSignature canProcessItemFunction = null,
	double processInterval = 100,
	int maximumThreads = 5,
	int processTimeout = -1,
	bool requeueOnTimeout = false,
	bool requeueOnException = false
)
View Source

Parameters

processItemsFunction  ProcessQueueTProcessItemsFunctionSignature
A delegate ProcessDictionaryTKey, TValueProcessItemFunctionSignature that defines a function signature to process multiple items at once.
canProcessItemFunction  ProcessDictionaryTKey, TValueCanProcessItemFunctionSignature  (Optional)
A delegate ProcessDictionaryTKey, TValueCanProcessItemFunctionSignature that determines if a key and value can currently be processed.
processInterval  Double  (Optional)
A Double which represents the process interval.
maximumThreads  Int32  (Optional)
An Int32 that represents the max number of threads to use.
processTimeout  Int32  (Optional)
An Int32 that represents the amount of time before a process times out.
requeueOnTimeout  Boolean  (Optional)
A Boolean value that indicates whether the process should requeue the item after a timeout.
requeueOnException  Boolean  (Optional)
A Boolean value that indicates whether the process should requeue the item after an exception.
See Also