示例#1
0
        public void Run()
        {
            IApplication    application = new MainApplication();
            IAppRouteConfig routeConfig = new AppRouteConfig();

            application.Configurate(routeConfig);
            this.server = new MyWebServer(1337, routeConfig);
            this.server.Run();
        }
示例#2
0
        public void Run()
        {
            var mainApplication = new MainApplication();
            var appRouteConfig  = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);

            var webServer = new MyWebServer(1337, appRouteConfig);

            webServer.Run();
        }
示例#3
0
        static int Main(string[] args)
        {
            MyWebServer ws = new MyWebServer();

            return(0);
        }