예제 #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();
 }
예제 #2
0
 public SayHelloCommand(CommandLineService commandLineService)
     : base(commandLineService, "hello")
 {
 }
예제 #3
0
 public TestCommand(CommandLineService commandLineService)
     : base(commandLineService, "test")
 {
 }