Exemplo n.º 1
0
        public void Start()
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            ServerConfiguration.Configure();
            foreach (SiteElement s in ServerConfiguration.Sites)
            {
                var webServer = new Server(s.Binding, s.Path);
                webServer.Start();

                log.InfoFormat("Web server start site {0} on {1}", s.Path, s.Binding);
                webServers.Add(webServer);
            }
        }