Exemple #1
0
        public void Run()
        {
            Console.WriteLine("write calculator or cake: ");

            while (true)
            {
                var choose = Console.ReadLine();

                if (choose == "cake")
                {
                    var mainApplication = new ByTheCakeApplication();
                    var appRouteConfig  = new AppRouteConfig();
                    mainApplication.Start(appRouteConfig);
                    var webServer = new WebServer(1337, appRouteConfig);
                    webServer.Run();
                    break;
                }
                else if (choose == "calculator")
                {
                    var mainApplication = new MainApplication();
                    var appRouteConfig  = new AppRouteConfig();
                    mainApplication.Start(appRouteConfig);
                    var webServer = new WebServer(1337, appRouteConfig);
                    webServer.Run();
                    break;
                }
                else
                {
                    Console.WriteLine("write calculator or cake: ");
                }
            }
        }
Exemple #2
0
        public void Run()
        {
            var appRouteConfig = new AppRouteConfig();
            var webServer      = new WebServer(1337, appRouteConfig);

            webServer.Run();
        }
        public void Run()
        {
            IAppRouteConfig routeConfig = new AppRouteConfig();

            this.webServer = new WebServer(1337, routeConfig);
            this.webServer.Run();
        }
Exemple #4
0
        public void Run()
        {
            IApplication    application = new MainApplication();
            IAppRouteConfig routeConfig = new AppRouteConfig();

            application.Configurate(routeConfig);
            this.server = new MyWebServer(1337, routeConfig);
            this.server.Run();
        }
Exemple #5
0
        public void Run()
        {
            IApplication    app         = new ByTheCakeApplication();
            IAppRouteConfig routeConfig = new AppRouteConfig();

            app.Configure(routeConfig);
            this.webserver = new WebServer(1337, routeConfig);
            this.webserver.Run();
        }
Exemple #6
0
        public void Run()
        {
            var app         = new MainApplication();
            var routeConfig = new AppRouteConfig();

            app.Start(routeConfig);

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

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

            webServer.Run();
        }
Exemple #8
0
        public static void Main()
        {
            IAppRouteConfig appConfig = new AppRouteConfig();

            Configure(appConfig);

            var launcher = new Launcher();

            launcher.Run();
        }
Exemple #9
0
        public void Run()
        {
            IApplication    app    = new MainApplication();
            IAppRouteConfig config = new AppRouteConfig();

            app.Start(config);

            this.server = new WebServer(8230, config);
            this.server.Run();
        }
        public void Run()
        {
            var mainApplication = new MainApplication();
            var appRouteConfig  = new AppRouteConfig();

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

            webServer.Run();
        }
Exemple #11
0
        public void Run()
        {
            IApplication    app         = new CalculatorApp();
            IAppRouteConfig routeConfig = new AppRouteConfig();

            app.Start(routeConfig);

            this.webServer = new WebServer(Port, routeConfig);
            this.webServer.Run();
        }
Exemple #12
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();
        }
        public void Run()
        {
            var app         = new MainApplication();
            var routeConfig = new AppRouteConfig();

            app.Start(routeConfig);

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

            _webServer.Run();
        }
        public void Run()
        {
            GameStoreApp gameStoreApp = new GameStoreApp();
            gameStoreApp.InitializeDatabase();

            AppRouteConfig appRouteConfig = new AppRouteConfig();
            gameStoreApp.Configure(appRouteConfig);

            WebServer webServer = new WebServer(1337, appRouteConfig);
            webServer.Run();
        }
        static void Run(string[] args)
        {
            var mainApplication = new ByTheCakeApplication();
            var appRouteConfig  = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);

            var server = new WebServer(8000, appRouteConfig);

            server.Run();
        }
Exemple #16
0
        public void Run()
        {
            var mainApplication = new ByTheCakeApplication();

            var appRouteConfig = new AppRouteConfig();

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

            webServer.Run();
        }
Exemple #17
0
        public void Run()
        {
            ByTheCakeApp   mainApplication = new ByTheCakeApp();
            AppRouteConfig appRouteConfig  = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);

            WebServer webServer = new WebServer(Port, appRouteConfig);

            webServer.Run();
        }
Exemple #18
0
        static void Main(string[] args)
        {
            var mainApplication = new MainApplication();

            var appRouteConfig = new AppRouteConfig();

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

            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();
        }
Exemple #20
0
        public void Run()
        {
            MainApplication mainApplication = new MainApplication();
            AppRouteConfig  appRouteConfig  = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);

            WebServer webServer = new WebServer(Port, appRouteConfig);

            webServer.Run();
        }
Exemple #21
0
        public void Run()
        {
            var mainApplication = new MainApplication();
            var routeConfig     = new AppRouteConfig();

            mainApplication.Configure(routeConfig);

            var webServer = new WebServer(8230, routeConfig);

            webServer.Run();
        }
Exemple #22
0
        public void Run()
        {
            IApplication app = new ByTheCakeApplication.ByTheCakeApplication();

            IAppRouteConfig routeConfig = new AppRouteConfig();

            app.Start(routeConfig);

            this.webServer = new WebServer(8457, routeConfig);
            this.webServer.Run();
        }
Exemple #23
0
        public void Run()
        {
            var app = new ByTheCakeApplication();

            app.InitializeDatabase();
            IAppRouteConfig routeConfig = new AppRouteConfig();

            app.Configure(routeConfig);
            this.webserver = new WebServer(1337, routeConfig);
            this.webserver.Run();
        }
Exemple #24
0
        public void Run()
        {
            IAplication     app         = new MainApplication();
            IAppRouteConfig routeConfig = new AppRouteConfig();

            app.Start(routeConfig);

            var webServer = new WebServerClass(1337, routeConfig);

            webServer.Run();
        }
Exemple #25
0
        public void Run()
        {
            var mainApplication = new GameStoreApp();
            var appRouteConfig  = new AppRouteConfig();

            mainApplication.Configure(appRouteConfig);

            var webServer = new Server.WebServer(Port, appRouteConfig);

            webServer.Run();
        }
Exemple #26
0
        static void Run(string[] args)
        {
            var application = new GameStoreApp();

            var appRouteConfig = new AppRouteConfig();

            application.Configure(appRouteConfig);

            var server = new WebServer(8000, appRouteConfig);

            server.Run();
        }
Exemple #27
0
        public void Run()
        {
            var mainApplication = new GameStoreApplication();

            mainApplication.InitializeDatabase();
            var appRouteConfig = new AppRouteConfig();

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

            webServer.Run();
        }
Exemple #28
0
        public void Run()
        {
            var mainApplication = new ByTheCakeApp();

            mainApplication.InitializeDatabase();
            var appRouteConfig = new AppRouteConfig();

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

            webServer.Run();
        }
Exemple #29
0
        public void Run()
        {
            //IApplication app = new MainApplication();
            //IApplication app = new ByTheCakeMainApp();
            IApplication    app            = new MainApplication();
            IAppRouteConfig appRouteConfig = new AppRouteConfig();

            app.Start(appRouteConfig);

            this.webServer = new WebServer(1333, appRouteConfig);
            this.webServer.Run();
        }
        public void Run()
        {
            var appRouteConfig = new AppRouteConfig();

            var application = new ByTheCakeApplication();

            application.InitializeDatabase();
            application.Configure(appRouteConfig);

            this.webServer = new WebServer(8230, appRouteConfig);
            this.webServer.Run();
        }