Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandBase"/> class.
 /// </summary>
 /// <param name="commandLineService">The command line service.</param>
 /// <param name="commandName">The command name.</param>
 protected CommandBase(CommandLineService commandLineService, string commandName)
 {
     if (commandLineService == null)
     {
         throw new ArgumentNullException("commandLineService");
     }
     if (commandName == null)
     {
         throw new ArgumentNullException("commandName");
     }
     this.commandLineService = commandLineService;
     this.commandName        = commandName.ToLower();
 }
Example #2
0
 public SayHelloCommand(CommandLineService commandLineService)
     : base(commandLineService, "hello")
 {
 }
Example #3
0
 public TestCommand(CommandLineService commandLineService)
     : base(commandLineService, "test")
 {
 }