C# Класс Catel.Services.IDispatcherServiceExtensions

Extension methods for the IDispatcherService.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

BeginInvoke() публичный статический Метод

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.
Результат void

BeginInvoke() публичный статический Метод

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.
Результат void

BeginInvokeIfRequired() публичный статический Метод

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.
Результат void

BeginInvokeIfRequired() публичный статический Метод

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.
Результат void

Invoke() публичный статический Метод

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.
Результат void

InvokeIfRequired() публичный статический Метод

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.
Результат void

InvokeIfRequired() публичный статический Метод

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.
Результат void