protected ICommandProxy EnqueueCommand(SimpleCommandDelegate commandDelegate, string description) { var command = CreateCommand(commandDelegate, description); _invoker.Submit(command); return(command); }
public Command(SimpleCommandDelegate commandDelegate, string description, string source) : this(commandDelegate) { ValidateDescriptionAndSource(description, source); }
public Command(SimpleCommandDelegate simpleCommandDelegate) : this() { _commandDelegate = command => simpleCommandDelegate(); }
protected Command CreateCommand(SimpleCommandDelegate commandDelegate, string description) { return(new Command(commandDelegate, description, Name)); }