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 ( Func execute, Func canExecute ) : System.Threading.Tasks
execute Func Async Delegate to execute when Execute is called on the command.
canExecute Func Delegate to execute when CanExecute is called on the command.
return System.Threading.Tasks
        public AsyncDelegateCommand(Func<Task> execute, Func<bool> canExecute)
            : this(execute != null ? p => execute() : (Func<object, Task>)null, canExecute != null ? p => canExecute() : (Func<object, bool>)null)
        { }

Same methods

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