Exemplo n.º 1
0
        public static void Main()
        {
            ConfigureMapper();
            HttpServer server = new HttpServer(8081, RoutesTable.Routes);

            MvcEngine.Run(server, "Wizmail");
        }
Exemplo n.º 2
0
        public static void Main()
        {
            IServiceProvider services = ConfigureServices();
            IServer          server   = new Server(8000, services);

            MvcEngine.Run(server);
        }
        static void Main(string[] args)
        {
            var server = new WebServer(1984, new ControllerRouter(), new ResourceRouter());

            ConfigureDatabaseContext(new CshushkaAppContext());
            MvcEngine.Run(server);
        }
Exemplo n.º 4
0
        static void Main()
        {
            ConfigureMapper();
            HttpServer server = new HttpServer(8081, RouteTable.Routes);

            MvcEngine.Run(server, "SoftuniStore");
        }
Exemplo n.º 5
0
        public static void Main(string[] args)
        {
            var dependencyMap       = new Dictionary <Type, Type>();
            var dependencyContainer = new DependencyContainer(dependencyMap);

            dependencyContainer.RegisterDependency <IHashService, HashService>();
            dependencyContainer.RegisterDependency <IUserService, UserService>();
            dependencyContainer.RegisterDependency <IAlbumService, AlbumService>();
            dependencyContainer.RegisterDependency <ITrackService, TrackService>();
            dependencyContainer.RegisterDependency <IUserCookieService, UserCookieService>();

            Mapper.Initialize(cfg =>
            {
                cfg.AddProfile <IRunesProfile>();
            });

            var handlingContext = new HttpRouteHandlingContext(
                new ControllerRouter(dependencyContainer),
                new ResourceRouter());

            Server server = new Server(8000, handlingContext);
            var    engine = new MvcEngine();

            engine.Run(server);
        }
Exemplo n.º 6
0
        public static void Main()
        {
            var server = new WebServer(8000, new ControllerRouter(), new ResourceRouter());
            var db     = new MeTubeDbContext();

            MvcEngine.Run(server, db);
        }
Exemplo n.º 7
0
        public static void Main(string[] args)
        {
            ViewBag.Bag = new Dictionary <string, dynamic>();
            HttpServer server = new HttpServer(8081, RouteTable.Routes);

            MvcEngine.Run(server, "IssueTracker.App");
        }
        static void Main()
        {
            ConfigureAutomapper();
            HttpServer server = new HttpServer(8081, RouterTable.Routes);

            MvcEngine.Run(server, "SoftUniStoreApp");
        }
Exemplo n.º 9
0
        static void Main()
        {
            ConfigureMapper();
            HttpServer server = new HttpServer(8081, RouteTable.Routes);

            MvcEngine.Run(server, "PizzaForum");
        }
Exemplo n.º 10
0
        static void Main()
        {
            var context = new MeTubeContext();
            var server  = new WebServer(8000, new ControllerRouter(), new ResourceRouter());

            MvcEngine.Run(server, context);
        }
Exemplo n.º 11
0
        public static void Main()
        {
            var server = new WebServer.WebServer(8888, new ControllerRouter(), new ResourceRouter());
            var db     = new TicketSystemContext();

            MvcEngine.Run(server, db);
        }
Exemplo n.º 12
0
        static void Main(string[] args)
        {
            LoadMapping();
            HttpServer server = new HttpServer(8081, RouteTable.Routes);

            MvcEngine.Run(server, "SoftUniStore.Client");
        }
        public static void Main()
        {
            var server = new WebServer(
                1337,
                new ControllerRouter(),
                new ResourceRouter());

            using (var db = new ChushkaContext())
            {
                if (!db.ProductTypes.Any())
                {
                    db.ProductTypes.Add(new ProductType {
                        Name = "Food"
                    });
                    db.ProductTypes.Add(new ProductType {
                        Name = "Domestic"
                    });
                    db.ProductTypes.Add(new ProductType {
                        Name = "Health"
                    });
                    db.ProductTypes.Add(new ProductType {
                        Name = "Cosmetic"
                    });
                    db.ProductTypes.Add(new ProductType {
                        Name = "Other"
                    });
                    db.SaveChanges();
                }

                db.Database.Migrate();
            }

            MvcEngine.Run(server);
        }
Exemplo n.º 14
0
        public static void Main()
        {
            HtmlsProvider.Initialize();

            HttpServer server = new HttpServer(8081, RouteTable.Routes);

            MvcEngine.Run(server, "SoftUniStore.Client.Api");
        }
Exemplo n.º 15
0
        public static void Main()
        {
            IHttpHandlerContext httpHandlerContext = new HttpRouteHandler(new ControllerRouter(), new ResourceRouter());
            Server server = new Server(80, httpHandlerContext);
            var    engine = new MvcEngine();

            engine.Run(server);
        }
Exemplo n.º 16
0
        public static void Main()
        {
            var dependencyContainer = new DependencyContainer();

            dependencyContainer.RegisterDependency <IHashService, HashService>();

            MvcEngine.Run(dependencyContainer);
        }
Exemplo n.º 17
0
        static void Main()
        {
            //Data.Data.Context.Database.Initialize(true);

            HttpServer server = new HttpServer(8081, RouteTable.Routes);

            MvcEngine.Run(server, "SoftUniStore.App");
        }
Exemplo n.º 18
0
        public static void Main(string[] args)
        {
            var server = new WebServer(8000, new ControllerRouter(), new ResourceRouter());

            KittenDbContext context = new KittenDbContext();

            MvcEngine.Run(server, context);
        }
Exemplo n.º 19
0
 static void Main(string[] args)
 {
     using (var db = new NoteDbContext())
     {
         db.Database.Migrate();
     }
     MvcEngine.Run(new WebServer.WebServer(8888, new ControllerRouter()));
 }
Exemplo n.º 20
0
        public static void Main()
        {
            var server = new WebServer(8000, new ControllerRouter(), new ResourceRouter());

            InitializeDatabase();

            MvcEngine.Run(server);
        }
Exemplo n.º 21
0
        public static void Main()
        {
            int port = 55000;

            WebServer server = new WebServer(port, new ControllerRouter(), new ResourceRouter());

            MvcEngine.Run(server, new MyTubeDbContext());
        }
Exemplo n.º 22
0
        static void Main(string[] args)
        {
            var router = new ControllerRouter();

            var server = new Server(8000, router);

            MvcEngine.Run(server);
        }
Exemplo n.º 23
0
        public static void Main()
        {
            //InitializeDatabase();

            var server = new WebServer(8000, new ControllerRouter(), new ResourceRouter());

            MvcEngine.Run(server, new KittenDbContext()); // Initialize DB here!
        }
        public static void Main()
        {
            //not finish yet
            var server = new WebServer(8888, new ControllerRouter(), new ResourceRouter());
            var db     = new MeTubeContext();

            MvcEngine.Run(server, db);
        }
Exemplo n.º 25
0
 static void Main()
 {
     using (var db = new SimpleMvcFrameworkDbContext())
     {
         db.Database.Migrate();
     }
     MvcEngine.Run(new WebServer(1337, new ControllerRouter()));
 }
        static void Main(string[] args)
        {
            var context = new NotesContext();

            HttpServer server = new HttpServer(8081, RouteTables.Routes);

            MvcEngine.Run(server);
        }
Exemplo n.º 27
0
        public static void Main(string[] args)
        {
            IHttpHandler handler = new ControllerRouter();
            Server       server  = new Server(8000, handler);
            var          engine  = new MvcEngine();

            engine.Run(server);
        }
Exemplo n.º 28
0
        public static void Main(string[] args)
        {
            var server = new WebServer(1337, new ControllerRouter(), new ResourceRouter());

            var dbContext = new MeTubeDbContext();

            MvcEngine.Run(server, dbContext);
        }
Exemplo n.º 29
0
 public static void Main()
 {
     MvcEngine.Run(
         new WebServer(
             1337,
             DependencyControllerRouter.Get(),
             new ResourceRouter()));
 }
Exemplo n.º 30
0
        static void Main(string[] args)
        {
            Data.Data.Context.Database.Initialize(true);

            HttpServer server = new HttpServer(8081, RouteTable.Routes);

            MvcEngine.Run(server, "Shouter.App");
        }