protected override void OnStart(string[] args)
        {
            app = new WindServiceBusApplication <WindServiceBusHostModule>();
            app.Start();

            ServiceHostEagle.Initilize();
        }
示例#2
0
        static void Main(string[] args)
        {
            var app = new WindServiceBusApplication <WindServiceBusHostModule>();

            app.Start();

            Console.WriteLine("按回车键停止服务...");
            Console.ReadLine();
            app.Stop();
        }