Interface IDispatcher
Provides access to the UI dispatcher of running application.
Namespace: TcOpen.Inxton.Threading
Assembly: TcOpen.Inxton.Abstractions.dll
Syntax
public interface IDispatcher
Methods
| Improve this Doc View SourceInvoke(Action)
Invokes an action on the dispatcher of the currently running application.
Declaration
void Invoke(Action action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action | action | Action to run |
InvokeAsync(Action)
Invokes an action on the dispatcher of the currently running application asynchronously.
Declaration
Task InvokeAsync(Action action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action | action | Action to run |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |