Interface IEditorAsyncCommand<T>
An command used to carry out an asynchronous operation.
Namespace: Gorgon.Editor.UI
Assembly: Gorgon.Editor.API.dll
Syntax
public interface IEditorAsyncCommand<in T> : IEditorCommand<T>
Type Parameters
Name | Description |
---|---|
T | The type of data to pass to the command. |
Remarks
Commands are used to perform actions on a view model. They work similarly to events in that they are usually called in response to a UI action like a button click.
Unlike the IEditorCommand<T> type, this allows commands to execute asynchronously and await the results on the view so that order of execution can be guaranteed even on the view.
Methods
| Edit this page View SourceExecuteAsync(T)
Function to execute the command.
Declaration
Task ExecuteAsync(T args)
Parameters
Type | Name | Description |
---|---|---|
T | args | The arguments to pass to the command. |
Returns
Type | Description |
---|---|
Task | A Task for asynchronous operation. |