System.Waf.Applications.AsyncDelegateCommand.AsyncDelegateCommand C# (CSharp) Method

AsyncDelegateCommand() public method

Initializes a new instance of the AsyncDelegateCommand class.
The execute argument must not be null.
public AsyncDelegateCommand ( Task>.Func execute, bool>.Func canExecute ) : System.Threading.Tasks
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;
        }

Same methods

AsyncDelegateCommand::AsyncDelegateCommand ( Func execute ) : System.Threading.Tasks
AsyncDelegateCommand::AsyncDelegateCommand ( Func execute, Func canExecute ) : System.Threading.Tasks
AsyncDelegateCommand::AsyncDelegateCommand ( Task>.Func execute ) : System.Threading.Tasks