C# Class SIL.Utils.SingleThreadedSynchronizeInvoke

A simple, single-threaded implementation of ISynchronizeInvoke
Inheritance: ISynchronizeInvoke
Exibir arquivo Open project: sillsdev/FieldWorks

Public Methods

Method Description
BeginInvoke ( Delegate method, object args ) : IAsyncResult

Asynchronously executes the delegate on the thread that created this object.

EndInvoke ( IAsyncResult result ) : object

Waits until the process started by calling M:System.ComponentModel.ISynchronizeInvoke.BeginInvoke(System.Delegate,System.Object[]) completes, and then returns the value generated by the process.

Invoke ( Delegate method, object args ) : object

Synchronously executes the delegate on the thread that created this object and marshals the call to the creating thread.

Method Details

BeginInvoke() public method

Asynchronously executes the delegate on the thread that created this object.
public BeginInvoke ( Delegate method, object args ) : IAsyncResult
method System.Delegate A to a method that takes parameters of the same number and type that are contained in .
args object An array of type to pass as arguments to the given method. This can be null if no arguments are needed.
return IAsyncResult

EndInvoke() public method

Waits until the process started by calling M:System.ComponentModel.ISynchronizeInvoke.BeginInvoke(System.Delegate,System.Object[]) completes, and then returns the value generated by the process.
public EndInvoke ( IAsyncResult result ) : object
result IAsyncResult An interface that represents the asynchronous operation started by calling .
return object

Invoke() public method

Synchronously executes the delegate on the thread that created this object and marshals the call to the creating thread.
public Invoke ( Delegate method, object args ) : object
method System.Delegate A that contains a method to call, in the context of the thread for the control.
args object An array of type that represents the arguments to pass to the given method. This can be null if no arguments are needed.
return object