Exemplo n.º 1
0
        /// <summary>
        /// The Main Thread: This is where your Service is Run.s
        /// </summary>
        static void Main()
        {
#if DEBUG
            ussdManager = new USSDManager();
            ussdManager.Start();
            waitEvent.WaitOne();
#else
            ServiceBase.Run(new USSDWindowService());
#endif
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.CancelKeyPress += new ConsoleCancelEventHandler(OnCancelKeyPress);
            ussdManager             = new USSDManager();
            ussdManager.Start();

            waitEvent.WaitOne();

            Console.WriteLine("Press <Enter> to close");
            Console.ReadLine();
        }
Exemplo n.º 3
0
 /// <summary>
 /// OnStart: Put startup code here
 ///  - Start threads, get inital data, etc.
 /// </summary>
 /// <param name="args"></param>
 protected override void OnStart(string[] args)
 {
     ussdManager = new USSDManager();
     ussdManager.Start();
 }