Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 protected void Application_Start(object sender, EventArgs e)
 {
     WcfLogServer.Start();
 }