C# Class Catel.Services.IDispatcherServiceExtensions

Extension methods for the IDispatcherService.
Datei anzeigen Open project: Catel/Catel

Public Methods

Method Description
BeginInvoke ( this dispatcherService, System.Action action ) : void

Executes the specified action asynchronously with the specified arguments on the thread that the Dispatcher was created on.

BeginInvoke ( this dispatcherService, Delegate method ) : void

Executes the specified delegate asynchronously with the specified arguments on the thread that the Dispatcher was created on.

BeginInvokeIfRequired ( this dispatcherService, System.Action action ) : void

Executes the specified action asynchronously with the specified arguments on the thread that the Dispatcher was created on if required. To check whether this is necessary, it will check whether the current thread has access to the dispatcher.

BeginInvokeIfRequired ( this dispatcherService, Delegate method ) : void

Executes the specified delegate asynchronously with the specified arguments on the thread that the Dispatcher was created on if required. To check whether this is necessary, it will check whether the current thread has access to the dispatcher.

Invoke ( this dispatcherService, Delegate method ) : void

Executes the specified delegate with the specified arguments synchronously on the thread the Dispatcher is associated with.

InvokeIfRequired ( this dispatcherService, System.Action action ) : void

Executes the specified action asynchronously with the specified arguments on the thread that the Dispatcher was created on if required. To check whether this is necessary, it will check whether the current thread has access to the dispatcher.

InvokeIfRequired ( this dispatcherService, Delegate method ) : void

Executes the specified delegate asynchronously with the specified arguments on the thread that the Dispatcher was created on if required. To check whether this is necessary, it will check whether the current thread has access to the dispatcher.

Method Details

BeginInvoke() public static method

Executes the specified action asynchronously with the specified arguments on the thread that the Dispatcher was created on.
The is null.
public static BeginInvoke ( this dispatcherService, System.Action action ) : void
dispatcherService this The dispatcher service.
action System.Action The action.
return void

BeginInvoke() public static method

Executes the specified delegate asynchronously with the specified arguments on the thread that the Dispatcher was created on.
The is null.
public static BeginInvoke ( this dispatcherService, Delegate method ) : void
dispatcherService this The dispatcher service.
method System.Delegate A delegate to a method that takes parameters specified in args, which is pushed onto the Dispatcher event queue.
return void

BeginInvokeIfRequired() public static method

Executes the specified action asynchronously with the specified arguments on the thread that the Dispatcher was created on if required. To check whether this is necessary, it will check whether the current thread has access to the dispatcher.
The is null.
public static BeginInvokeIfRequired ( this dispatcherService, System.Action action ) : void
dispatcherService this The dispatcher service.
action System.Action The action.
return void

BeginInvokeIfRequired() public static method

Executes the specified delegate asynchronously with the specified arguments on the thread that the Dispatcher was created on if required. To check whether this is necessary, it will check whether the current thread has access to the dispatcher.
The is null.
public static BeginInvokeIfRequired ( this dispatcherService, Delegate method ) : void
dispatcherService this The dispatcher service.
method System.Delegate A delegate to a method that takes parameters specified in args, which is pushed onto the Dispatcher event queue.
return void

Invoke() public static method

Executes the specified delegate with the specified arguments synchronously on the thread the Dispatcher is associated with.
The is null.
public static Invoke ( this dispatcherService, Delegate method ) : void
dispatcherService this The dispatcher service.
method System.Delegate A delegate to a method that takes parameters specified in args, which is pushed onto the Dispatcher event queue.
return void

InvokeIfRequired() public static method

Executes the specified action asynchronously with the specified arguments on the thread that the Dispatcher was created on if required. To check whether this is necessary, it will check whether the current thread has access to the dispatcher.
The is null.
public static InvokeIfRequired ( this dispatcherService, System.Action action ) : void
dispatcherService this The dispatcher service.
action System.Action The action.
return void

InvokeIfRequired() public static method

Executes the specified delegate asynchronously with the specified arguments on the thread that the Dispatcher was created on if required. To check whether this is necessary, it will check whether the current thread has access to the dispatcher.
The is null.
public static InvokeIfRequired ( this dispatcherService, Delegate method ) : void
dispatcherService this The dispatcher service.
method System.Delegate A delegate to a method that takes parameters specified in args, which is pushed onto the Dispatcher event queue.
return void