Esempio n. 1
0
File: Program.cs Progetto: vebin/soa
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            //ServiceBase[] ServicesToRun;
            //ServicesToRun = new ServiceBase[] 
            //{ 
            //    new QCService() 
            //};
            //ServiceBase.Run(ServicesToRun);

            Console.WriteLine("队列处理服务开始启动。");

            RabbitQueueManager m_RabbitQueueManager = m_RabbitQueueManager = new RabbitQueueManager();
            m_RabbitQueueManager.StartReceive();

            Console.WriteLine("队列处理服务启动成功!");
            Console.Read();
        }
Esempio n. 2
0
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            //ServiceBase[] ServicesToRun;
            //ServicesToRun = new ServiceBase[]
            //{
            //    new QCService()
            //};
            //ServiceBase.Run(ServicesToRun);

            Console.WriteLine("队列处理服务开始启动。");

            RabbitQueueManager m_RabbitQueueManager = m_RabbitQueueManager = new RabbitQueueManager();

            m_RabbitQueueManager.StartReceive();

            Console.WriteLine("队列处理服务启动成功!");
            Console.Read();
        }