/// <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
        }
Exemple #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();
        }
 /// <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();
 }