Click or drag to resize
EventThrottlerTElement, TEventArgs Constructor (ISynchronizeInvoke, Int32, IEqualityComparerTEventArgs)

Namespace:  SD.Tools.Algorithmia.GeneralDataStructures
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.0.0 (1.3.17.0314)
Syntax
public EventThrottler(
	ISynchronizeInvoke synchronizingObject,
	int interval,
	IEqualityComparer<TEventArgs> eventArgsComparer
)

Parameters

synchronizingObject
Type: System.ComponentModelISynchronizeInvoke
The synchronizing object. If null, the EventThrottled event might be raised by a different thread, as the System timer used for queue processing is using a threadpool in that case. If the handler has to run on the same thread as the UI, specify a UI object as synchronizingObject, e.g. a form object or control object on which this throttler is used.
interval
Type: SystemInt32
The interval, in milliseconds. If smaller than 100, it's set to 500
eventArgsComparer
Type: System.Collections.GenericIEqualityComparerTEventArgs
The event args comparer. Can be null, in which the default equality comparer is used.
See Also