Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
        public void Run()
        {
            var app         = new MainApplication();
            var routeConfig = new AppRouteConfig();

            app.Start(routeConfig);

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

            _webServer.Run();
        }
Exemplo n.º 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();
        }