Esempio n. 1
0
        static void Main(string[] args)
        {
            var watchDog = new WatchDog();

            watchDog.Start();
            new ConsoleInteraction().Run(watchDog);
        }
Esempio n. 2
0
 public void Run(WatchDog watchDog)
 {
     this.watchDog                 = watchDog;
     watchDog.FileAdded           += OnFileAdded;
     watchDog.IntegrationExecuted += OnIntegrationExecuted;
     PrintActiveConfigurations();
     while (true)
     {
         PrintPrompt();
         var line = Console.ReadLine();
         try
         {
             HandleInput(line);
         }
         catch (Exception ex)
         {
             Console.Error.WriteLine(ex.Message);
         }
     }
 }