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

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