C# Class RemoteViewing.Utility.SynchronizedCall

Marshals a single call from one thread to another.
Datei anzeigen Open project: qmfrederik/remoteviewing Class Usage Examples

Public Methods

Method Description
Run ( ) : void

Runs the call in the current thread, and marshals the exception back if one occurs.

SynchronizedCall ( SendOrPostCallback callback, object state ) : System

Initializes a new instance of the SynchronizedCall class.

Wait ( ) : void

Waits for SynchronizedCall.Run to complete.

Method Details

Run() public method

Runs the call in the current thread, and marshals the exception back if one occurs.
public Run ( ) : void
return void

SynchronizedCall() public method

Initializes a new instance of the SynchronizedCall class.
public SynchronizedCall ( SendOrPostCallback callback, object state ) : System
callback SendOrPostCallback The call to marshal.
state object The state to provide to the call. is fine if you don't need to include any state.
return System

Wait() public method

Waits for SynchronizedCall.Run to complete.
public Wait ( ) : void
return void