public AsyncCommand(Func <CancellationToken, Task> command) { _command = command; _canExecuteFunc = () => true; _cancelCommand = new CancelAsyncCommand(); }
public AsyncCommand(Func <CancellationToken, Task> command, Func <bool> canExecute) { _command = command; _canExecuteFunc = canExecute; _cancelCommand = new CancelAsyncCommand(); }
public AsyncResultCommand(Func <CancellationToken, Task <TResult> > command) { _command = command; _cancelCommand = new CancelAsyncCommand(); }