C# Class Catel.Services.IDispatcherServiceExtensions

Extension methods for the IDispatcherService.
Afficher le fichier Open project: Catel/Catel

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

BeginInvoke() public static méthode

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.
Résultat void

BeginInvokeIfRequired() public static méthode

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.
Résultat void

BeginInvokeIfRequired() public static méthode

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.
Résultat void

Invoke() public static méthode

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.
Résultat void

InvokeIfRequired() public static méthode

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.
Résultat void

InvokeIfRequired() public static méthode

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.
Résultat void