Beispiel #1
0
 public Simulacre(IEar ear, IMouth mouth, ICortex cortex, INerve nerve, ILoggerFactory logFac)
 {
     this.ear = ear;
     this.mouth = mouth;
     this.cortex = cortex;
     this.logger = logFac.GetLogger(this.GetType());
     this.nerve = nerve;
 }
Beispiel #2
0
 public MovelCommand(Func <TInput, Task <TOutput> > execute, IEar <bool> canExecute)
 {
     this.execute    = execute ?? (input => Task.FromResult(default(TOutput)));
     this.canExecute = canExecute ?? new ConstantEar <bool>(true);
     this.canExecute.ValueChanged += EarOnValueChanged;
 }