public AsyncDelegateCommand ( Task>.Func | ||
execute | Task>.Func | Async Delegate to execute when Execute is called on the command. |
canExecute | bool>.Func | Delegate to execute when CanExecute is called on the command. |
return | System.Threading.Tasks |
public AsyncDelegateCommand(Func<object, Task> execute, Func<object, bool> canExecute)
{
if (execute == null) { throw new ArgumentNullException(nameof(execute)); }
this.execute = execute;
this.canExecute = canExecute;
}
AsyncDelegateCommand::AsyncDelegateCommand ( Func |
|
AsyncDelegateCommand::AsyncDelegateCommand ( Func |
|
AsyncDelegateCommand::AsyncDelegateCommand ( Task>.Func |