static void Main(string[] args) { WcfLogServer.Start(); try { using (var host = WcfServiceHostFactory.CreateServiceHost <WcfLogService>()) { host.Open(); Console.WriteLine("Log service started"); Console.ReadLine(); } } catch (Exception ex) { Console.WriteLine(ex.Message); } Console.ReadLine(); WcfLogServer.End(); }
protected void Application_Start(object sender, EventArgs e) { WcfLogServer.Start(); }