コード例 #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();
        }
コード例 #2
0
 protected void Application_End(object sender, EventArgs e)
 {
     WcfLogServer.End();
 }
コード例 #3
0
 protected void Application_Start(object sender, EventArgs e)
 {
     WcfLogServer.Start();
 }