The WorkDispatcher TItem type exposes the following members.
Back to Top
Methods
Name | Description | |
---|---|---|
AddFirst | Adds the item to the front of the queue.
| |
AddLast | Adds the item to the back of the queue.
| |
AddWorkerModelChangedHandler | Adds a handler for the worker model changed event.
If AutoCancel is true, all currently
dispatched work items are canceled before this event is raised.
The callee would typically invalidate any stored work results,
and dispatch new work items when needed.
The event can be raised on any thread.
| |
Cancel(IEnumerable TItem ) | Cancel the specified work items.
| |
Cancel(TItem) | Cancel the work item.
| |
CancelAll | Cancel all work items.
(Inherited from WorkDispatcher.) | |
Dispose | Cancels all work items and frees up resources.
(Inherited from WorkDispatcher.) | |
ExecuteSynchronously | Executes the item synchronously.
This method is suitable when forced to execute
items one by one and access the result synchronously.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetItems | Gets the work items that are currently waiting to be dispatched.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveWorkerModelChangedHandler | Removes a handler for the worker model changed event.
| |
SetItems | Sets the items to be dispatched. The first item will be dispatched first.
| |
WaitAll | Waits until all items have been processed.
|
See Also