Ejemplo n.º 1
0
        protected ICommandProxy EnqueueCommand(SimpleCommandDelegate commandDelegate, string description)
        {
            var command = CreateCommand(commandDelegate, description);

            _invoker.Submit(command);
            return(command);
        }
Ejemplo n.º 2
0
 public Command(SimpleCommandDelegate commandDelegate, string description, string source)
     : this(commandDelegate)
 {
     ValidateDescriptionAndSource(description, source);
 }
Ejemplo n.º 3
0
 public Command(SimpleCommandDelegate simpleCommandDelegate)
     : this()
 {
     _commandDelegate = command => simpleCommandDelegate();
 }
Ejemplo n.º 4
0
 protected Command CreateCommand(SimpleCommandDelegate commandDelegate, string description)
 {
     return(new Command(commandDelegate, description, Name));
 }