예제 #1
0
        public void Run()
        {
            IApplication    app         = new MainApplication();
            IAppRouteConfig routeConfig = new AppRouteConfig();

            app.Configure(routeConfig);
            this.webserver = new WebServer(1337, routeConfig);
            this.webserver.Run();
        }
예제 #2
0
        public void Run()
        {
            var mainApplication = new MainApplication();
            var appRouteConfig  = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);
            var webServer = new WebServer(1337, appRouteConfig);

            webServer.Run();
        }
예제 #3
0
        public void Run()
        {
            var mainApplication = new MainApplication();
            var routeConfig     = new AppRouteConfig();

            mainApplication.Configure(routeConfig);

            var webServer = new WebServer(8230, routeConfig);

            webServer.Run();
        }
        static void Run(string[] args)
        {
            IApplication app            = new MainApplication();
            var          appRouteConfig = new AppRouteConfig();

            app.Configure(appRouteConfig);

            var server = new WebServer(8000, appRouteConfig);

            server.Run();
        }
예제 #5
0
        public void Run()
        {
            MainApplication mainApplication = new MainApplication();
            AppRouteConfig  appRouteConfig  = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);

            WebServer webServer = new WebServer(Port, appRouteConfig);

            webServer.Run();
        }
        public void Run()
        {
            var app         = new MainApplication();
            var routeConfig = new AppRouteConfig();

            app.Configure(routeConfig);

            var webServer = new WebServer(1337, routeConfig);

            webServer.Run();
        }
예제 #7
0
        public void Run()
        {
            var mainApplication = new MainApplication();
            //var mainApplication = new ByTheCakeApp();

            var appRouteConfig = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);

            var webServer = new WebServer(Port, appRouteConfig);

            webServer.Run();
        }
예제 #8
0
        public static void Main()
        {
            int Port = 1337;

            IAppRouteConfig routeConfig = new AppRouteConfig();

            IApplication app = new MainApplication();

            app.Configure(routeConfig);

            WebServer webServer = new WebServer(Port, routeConfig);

            webServer.Run();
        }
예제 #9
0
        public static void Main()
        {
            int Port = 8230;

            IAppRouteConfig routeConfig = new AppRouteConfig();

            var app = new MainApplication();

            app.Configure(routeConfig);

            BasicWebServer.Server.WebServer webServer = new BasicWebServer.Server.WebServer(Port, routeConfig);

            webServer.Run();
        }
예제 #10
0
        public void Run()
        {
            var mainApplication = new MainApplication();

            mainApplication.InitializeDatabase();

            var appRouteConfig = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);

            var webServer = new WebServer(Port, appRouteConfig);

            webServer.Run();
        }
예제 #11
0
        private static void Main()
        {
            int Port = 8888;

            IAppRouteConfig routeConfig = new AppRouteConfig();

            var app = new MainApplication();

            //var app = new ByTheCakeApplication();

            app.Configure(routeConfig);

            WebServer webServer = new WebServer(Port, routeConfig);

            webServer.Run();

            Console.ReadLine();
        }