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

            app.Start(routeConfig);

            this.webServer = new Server.WebServer(8230, routeConfig);
            this.webServer.Run();
        }
Example #2
0
        public void Run()
        {
            var app         = new MainApplication();
            var routeConfig = new AppRouteConfig();

            app.Start(routeConfig);
            var webServer = new Server.WebServer(1337, routeConfig);

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

            app.Start(routeConfig);

            _webServer = new Server.WebServer(port: 8230, appRouteConfig: routeConfig);

            _webServer.Run();
        }
Example #4
0
        public void Run()
        {
            IApplication app = new GameApplication.GameApplication();
            var          ctx = new MyDbContext();

            ctx.Database.EnsureCreated();

            IAppRouteConfig routeConfig = new AppRouteConfig();

            app.Start(routeConfig);

            this.webServer = new Server.WebServer(8080, routeConfig);
            this.webServer.Run();
        }