Esempio n. 1
0
        static void Main(string[] args)
        {
            // 1. Build BasicWebserver
            BasicWebserver webserver = new BasicWebserver();

            // 2. Start the WCF WebServer
            using (WCFServiceApi wcfServer = new WCFServiceApi(webserver))
            {
                if (!wcfServer.StartWebService(Constants.DefaultWebServicePort))
                {
                    Console.WriteLine("Fatal Http Webservice initialization error.");

                    return;
                }

                // 3. Wait for client calls.
                Thread.Sleep(Timeout.Infinite);
            }
        }
 public WCFServiceApi(BasicWebserver basicwebserver)
 {
     WebServer = basicwebserver;
 }