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(); }
protected void Application_Start(object sender, EventArgs e) { ConfigUpdateManager.InitHeart(); }