Exemple #1
0
        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();
        }
Exemple #2
0
 protected override void OnStart(string[] args)
 {
     engine = new Engine();
     engine.Start();
 }