WorkDispatcherTItem Methods TIBCO Spotfire 7.6 API Reference

The WorkDispatcherTItem generic type exposes the following members.

Methods

  Name Description
Public method AddFirst
Adds the item to the front of the queue.
Public method AddLast
Adds the item to the back of the queue.
Public method 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.
Public method Cancel(IEnumerableTItem)
Cancel the specified work items.
Public method Cancel(TItem)
Cancel the work item.
Public method CancelAll
Cancel all work items.
(Inherited from WorkDispatcher.)
Public method Dispose
Cancels all work items and frees up resources.
(Inherited from WorkDispatcher.)
Public method ExecuteSynchronously
Executes the item synchronously. This method is suitable when forced to execute items one by one and access the result synchronously.
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetItems
Gets the work items that are currently waiting to be dispatched.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RemoveWorkerModelChangedHandler
Removes a handler for the worker model changed event.
Public method SetItems
Sets the items to be dispatched. The first item will be dispatched first.
Public method WaitAll
Waits until all items have been processed.
Top
See Also

Reference