|
ProcessDictionaryTKey, TValueCanProcessItemFunctionSignature Delegate
|
Function signature that determines if a key and value can be currently processed.
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.264-beta+d1c3a754a4d50e5c740e530e6875e878ac32de9a
Syntaxpublic delegate bool CanProcessItemFunctionSignature(
TKey key,
TValue value
)
Public Delegate Function CanProcessItemFunctionSignature (
key As TKey,
value As TValue
) As Boolean
public delegate bool CanProcessItemFunctionSignature(
TKey key,
TValue value
)
type CanProcessItemFunctionSignature =
delegate of
key : 'TKey *
value : 'TValue -> boolParameters
- key TKey
- key to be checked for processing availability.
- value TValue
- value to be checked for processing availability.
Return Value
BooleanTrue, if key and value can be processed.
RemarksImplementation of this function is optional. It will be assumed that an item can be processed if this
function is not defined
Items must eventually get to a state where they can be processed or they will remain in the ProcessDictionaryTKey, TValue
indefinitely.
Note that when this function is implemented and QueueProcessingStyle = ManyAtOnce (i.e.,
ProcessItemsFunction is defined), then each item presented
for processing must evaluate as "CanProcessItem = True" before any items are processed.
See Also