Home > Services > DXCore Services – Synchronization

DXCore Services – Synchronization

July 29th, 2011

The Synchronization DXCore service provides methods for synchronizing thread code on Visual Studio’s foreground thread. The service is used by the CodeRush Code Issues technology for example.

Methods of this service:

Method name

Description

BeginInvoke(Delegate) Executes the specified delegate asynchronously on the thread that owns the IDE’s underlying window handle (the UI thread).
BeginInvoke(Delegate, object[]) Executes the specified delegate asynchronously with the specified arguments, on the thread that the IDE’s underlying handle was created on (the UI thread).
EndInvoke(IAsyncResult) Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.
Invoke(Delegate) Executes the specified delegate on the thread that owns the IDE’s underlying window handle (the UI thread).
Invoke(Delegate, object[]) Executes the specified delegate, with the specified list of arguments, on the thread that owns the IDE’s underlying window handle (the UI thread).
InvokeRequired Gets a value indicating whether the caller must call an invoke method when making method calls because the caller is on a different thread than the one that the IDE was created on (the UI thread).
—–
Products: DXCore
Versions: 11.1 and up
VS IDEs: any
Updated: Jul/30/2011
ID: D103

Similar Posts: