| EventThrottler<TElement, TEventArgs> Class |
Namespace: SD.Tools.Algorithmia.GeneralDataStructures
public class EventThrottler<TElement, TEventArgs> where TElement : class where TEventArgs : EventArgs
The EventThrottler< TElement, TEventArgs> type exposes the following members.
| Name | Description | |
|---|---|---|
| EventThrottler<TElement, TEventArgs>(ISynchronizeInvoke) |
Initializes a new instance of the EventThrottler< TElement, TEventArgs> class.
| |
| EventThrottler<TElement, TEventArgs>(ISynchronizeInvoke, Int32) |
Initializes a new instance of the EventThrottler< TElement, TEventArgs> class.
| |
| EventThrottler<TElement, TEventArgs>(ISynchronizeInvoke, Int32, IEqualityComparer<TEventArgs>) |
Initializes a new instance of the EventThrottler< TElement, TEventArgs> class.
|
| Name | Description | |
|---|---|---|
| Enabled |
Gets or sets a value indicating whether this EventThrottler< TElement, TEventArgs> is enabled. If disabled, it simply re-raises
the events enqueued.
|
| Name | Description | |
|---|---|---|
| Clear |
Clears this instance's queued tasks and stops the timer, if it was set.
| |
| EnqueueEvent |
Enqueues the event in the task queue.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| EventThrottled |
Raised when a unique event was throttled from the task queue and approved to be processed by observers.
| |
| QueueProcessingFinished |
Raised when the queue processing was finished.
| |
| QueueProcessingStarted |
Raised when the queue processing was started.
|