static void Main(string[] args) { var runner = new AppRunner(); runner.Start(); while (runner.IsRunning) { } }
static void Main(string[] args) { AppRunner runner = new AppRunner(Actions); runner.Start(); while (runner.Active) { runner.Run(); } }