Esempio n. 1
0
        static void Main(string[] args)
        {
            HttpServer httpServer;

            if (args.GetLength(0) > 0)
            {
                httpServer = new HttpServerImp(Convert.ToInt16(args[0]));
            }
            else
            {
                httpServer = new HttpServerImp(8080, "127.0.0.1", "D:\\");
            }
            httpServer.Start();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

            Log.Level = LogLevel.Debug;
            HttpServer httpServer;

            if (args.GetLength(0) > 0)
            {
                httpServer = new HttpServerImp(Convert.ToInt16(args[0]), args[1], args[2]);
            }
            else
            {
                httpServer = new HttpServerImp(8080, "127.0.0.1", System.Environment.CurrentDirectory);
            }
            httpServer.Start();
        }