WorkDispatcherTItemExecuteSynchronously Method TIBCO Spotfire 7.6 API Reference
Executes the item synchronously. This method is suitable when forced to execute items one by one and access the result synchronously.

Namespace: Spotfire.Dxp.Framework.Threading
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax

C#
public void ExecuteSynchronously(
	TItem workItem,
	WorkItemHandler<TItem> resultHandler
)

Parameters

workItem
Type: TItem
The work item.
resultHandler
Type: Spotfire.Dxp.Framework.ThreadingWorkItemHandlerTItem
The result handler.
Exceptions

ExceptionCondition
InvalidOperationException Thrown if the item already has been added to a dispatcher, including this dispatcher.
Remarks

  • Access to the processed workItem shall be made in the resultHandler. The handler may be run on any thread. Since it is a work item handler, the work item can be passed to the application thread asynchronously as long as M:WorkItem.ReturnItem is not called. After that, the work item may have been disposed.
  • Different from AddFirst(TItem) and AddLast(TItem), instance equal work items cannot be added twice.
This method cannot be called during a transaction.
Version Information

Supported in: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference