示例#1
0
        static void StartWebserver()
        {
            try {
                System.Diagnostics.Debug.WriteLine(string.Format("Starting webserver on port {0} ..."), Properties.Settings.Default.WebserverPort);

                Webserver proxyHost = new Webserver(Properties.Settings.Default.WebserverPort);
                proxyHost.Start();

                System.Diagnostics.Debug.WriteLine(string.Format("Webserver running."));
            } catch (Exception ex) {
                LogEx(ex);
                throw;
            }
        }
示例#2
0
        static void StartWebserver()
        {
            try {
                System.Diagnostics.Debug.WriteLine (string.Format ("Starting webserver on port {0} ..."), Properties.Settings.Default.WebserverPort);

                Webserver proxyHost = new Webserver (Properties.Settings.Default.WebserverPort);
                proxyHost.Start ();

                System.Diagnostics.Debug.WriteLine (string.Format ("Webserver running."));

            } catch (Exception ex) {

                LogEx (ex);
                throw;
            }
        }