예제 #1
0
        public AsyncCommand(Func <Task> command, INotifyCanExecute caneExecute, IFatalHandler fatalHandler)
        {
            _command      = command;
            _caneExecute  = caneExecute;
            _fatalHandler = fatalHandler;

            _caneExecute.PropertyChanged += CaneExecuteOnPropertyChanged;
        }
예제 #2
0
 public AsyncCommandFactory(IFatalHandler fatalHandler)
 {
     _fatalHandler = fatalHandler;
 }
예제 #3
0
 public CommandTaskCompletion(Task task, IFatalHandler fatalHandler)
 {
     _fatalHandler  = fatalHandler;
     TaskCompletion = WatchTaskAsync(task);
 }