Пример #1
0
        static void Main(string[] args)
        {
            Handler handler = new Handler();

            handler.Start();

            Console.ReadLine();

            handler.Stop();
        }
Пример #2
0
        protected override void OnStart(string[] args)
        {
            try
            {
                handler = new Handler();

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