Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     var arguments = new CommandLineArgs(args);
     var printTime = new PrintTimeCommand();
     var timer = new TimerCommand(arguments);
     var commands = new ICommand[] { printTime, timer };
     new Program(arguments, commands).Run();
 }
Ejemplo n.º 2
0
 public Program(CommandLineArgs arguments, TextWriter writer, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.writer = writer;
     this.commands = commands;
 }
Ejemplo n.º 3
0
 public Program(CommandLineArgs arguments, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.commands = commands;
 }
Ejemplo n.º 4
0
 public Program(CommandLineArgs arguments, TextWriter tx, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.tx = tx;
     this.commands = commands;
 }
Ejemplo n.º 5
0
 public Program(CommandLineArgs arguments, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.commands  = commands;
 }
Ejemplo n.º 6
0
 public Program(CommandLineArgs arguments, TextWriter outputStream, ICommand[] commands)
 {
     this.arguments = arguments;
     OutputStream = outputStream;
     this.commands = commands;
 }