WorkDispatcher TItem  Methods TIBCO Spotfire 6.0 API Reference
The WorkDispatcher TItem  type exposes the following members.
Methods

  NameDescription
Public methodAddFirst
Adds the item to the front of the queue.
Public methodAddLast
Adds the item to the back of the queue.
Public methodAddWorkerModelChangedHandler
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 methodCancel(IEnumerable TItem )
Cancel the specified work items.
Public methodCancel(TItem)
Cancel the work item.
Public methodCancelAll
Cancel all work items.
(Inherited from WorkDispatcher.)
Public methodDispose
Cancels all work items and frees up resources.
(Inherited from WorkDispatcher.)
Public methodExecuteSynchronously
Executes the item synchronously. This method is suitable when forced to execute items one by one and access the result synchronously.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetItems
Gets the work items that are currently waiting to be dispatched.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveWorkerModelChangedHandler
Removes a handler for the worker model changed event.
Public methodSetItems
Sets the items to be dispatched. The first item will be dispatched first.
Public methodWaitAll
Waits until all items have been processed.
Back to Top
See Also