static void Main(string[] args) { Console.WriteLine("Small Sensor Publshing Engine - Debugging Service"); Engine engine = null; try { engine = new Engine(); engine.Start(); } catch (Exception ex) { Console.WriteLine(ex); } Console.WriteLine("Enter on an empty line to exit."); Console.Write("> "); Console.ReadLine(); if (engine != null) engine.Stop(); Trace.Flush(); }
protected override void OnStart(string[] args) { engine = new Engine(); engine.Start(); }