WorkDispatcher<TItem>.ExecuteSynchronously Method TIBCO Spotfire 6.0 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: 13.19.7018.3940 (13.19.7018.3940)
Syntax

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

Parameters

workItem
Type: TItem
The work item.
resultHandler
Type: Spotfire.Dxp.Framework.Threading.WorkItemHandler<TItem>
The result handler.
Exceptions

ExceptionCondition
System.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.
See Also