Esempio n. 1
0
        public void Start()
        {
            var output = "";

            do
            {
                var input = Console.ReadLine();

                var data    = input.Split(";");
                var command = data[0];
                data = data.Skip(1).ToArray();

                output = commandInterpreter.ExecuteCommand(command, data);
            } while (output != "STOP");
        }
Esempio n. 2
0
 public void Execute()
 {
     Thread.Sleep(_event.TimerSpanBeforeStart);
     _commandInterpreter.ExecuteCommand(_event.ExecutingEvent.Command);
 }