예제 #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
        }
예제 #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();
        }
예제 #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();
 }