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

            app.Configure(routeConfig);

            this.webserver = new WebServer(8230, routeConfig);
            this.webserver.Run();
        }
Example #2
0
        public void Run()
        {
            var mainApplication = new ByTheCakeApp();

            var appRouteConfig = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);

            var webServer = new WebServer(7777, appRouteConfig);

            webServer.Run();
        }