示例#1
0
 public AsyncCommand(Func <CancellationToken, Task> command)
 {
     _command        = command;
     _canExecuteFunc = () => true;
     _cancelCommand  = new CancelAsyncCommand();
 }
示例#2
0
 public AsyncCommand(Func <CancellationToken, Task> command, Func <bool> canExecute)
 {
     _command        = command;
     _canExecuteFunc = canExecute;
     _cancelCommand  = new CancelAsyncCommand();
 }
示例#3
0
 public AsyncResultCommand(Func <CancellationToken, Task <TResult> > command)
 {
     _command       = command;
     _cancelCommand = new CancelAsyncCommand();
 }