Example #1
0
        static void Main(string[] args)
        {
            Handler handler = new Handler();

            handler.Start();

            Console.ReadLine();

            handler.Stop();
        }
        protected override void OnStart(string[] args)
        {
            try
            {
                handler = new Handler();

                handler.Start();
            }
            catch(Exception ex)
            {
                source.TraceData(TraceEventType.Error, 0, ex);
            }
        }