static void Main(string[] args) { var watchDog = new WatchDog(); watchDog.Start(); new ConsoleInteraction().Run(watchDog); }
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); } } }