Interface IAsyncDelegateCommand<T>
Defines methods for an asynchronous delegate command.
System.Windows.Input.ICommand.CanExecute(System.Object)
System.Windows.Input.ICommand.Execute(System.Object)
System.Windows.Input.ICommand.CanExecuteChanged
Namespace: Sartorius.SAF.Presentation.Commands
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public interface IAsyncDelegateCommand<in T> : ICommand
Type Parameters
Name | Description |
---|---|
T | The type of the command parameter. |
Methods
View SourceCanExecute(T)
Determines whether the command can execute in its current state
Declaration
bool CanExecute(T parameter)
Parameters
Type | Name | Description |
---|---|---|
T | parameter | Data used by the command. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ExecuteAsync(T)
Defines the method to be called when the command is invoked.
Declaration
Task ExecuteAsync(T parameter)
Parameters
Type | Name | Description |
---|---|---|
T | parameter | Data used by the command. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task object representing the asynchronous operation. |