示例#1
0
        static void Main(string[] args)
        {
            ConfigUpdateManager.InitHeart();

            try
            {
                using (var host = WcfServiceHostFactory.CreateServiceHost <WcfConfigService>())
                {
                    host.Open();
                    Console.WriteLine("Config service started");
                    Console.ReadLine();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            Console.ReadLine();
        }
示例#2
0
 protected void Application_Start(object sender, EventArgs e)
 {
     ConfigUpdateManager.InitHeart();
 }