public static void Main() { ConfigureMapper(); HttpServer server = new HttpServer(8081, RoutesTable.Routes); MvcEngine.Run(server, "Wizmail"); }
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); }
static void Main() { ConfigureMapper(); HttpServer server = new HttpServer(8081, RouteTable.Routes); MvcEngine.Run(server, "SoftuniStore"); }
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); }
public static void Main() { var server = new WebServer(8000, new ControllerRouter(), new ResourceRouter()); var db = new MeTubeDbContext(); MvcEngine.Run(server, db); }
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"); }
static void Main() { ConfigureMapper(); HttpServer server = new HttpServer(8081, RouteTable.Routes); MvcEngine.Run(server, "PizzaForum"); }
static void Main() { var context = new MeTubeContext(); var server = new WebServer(8000, new ControllerRouter(), new ResourceRouter()); MvcEngine.Run(server, context); }
public static void Main() { var server = new WebServer.WebServer(8888, new ControllerRouter(), new ResourceRouter()); var db = new TicketSystemContext(); MvcEngine.Run(server, db); }
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); }
public static void Main() { HtmlsProvider.Initialize(); HttpServer server = new HttpServer(8081, RouteTable.Routes); MvcEngine.Run(server, "SoftUniStore.Client.Api"); }
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); }
public static void Main() { var dependencyContainer = new DependencyContainer(); dependencyContainer.RegisterDependency <IHashService, HashService>(); MvcEngine.Run(dependencyContainer); }
static void Main() { //Data.Data.Context.Database.Initialize(true); HttpServer server = new HttpServer(8081, RouteTable.Routes); MvcEngine.Run(server, "SoftUniStore.App"); }
public static void Main(string[] args) { var server = new WebServer(8000, new ControllerRouter(), new ResourceRouter()); KittenDbContext context = new KittenDbContext(); MvcEngine.Run(server, context); }
static void Main(string[] args) { using (var db = new NoteDbContext()) { db.Database.Migrate(); } MvcEngine.Run(new WebServer.WebServer(8888, new ControllerRouter())); }
public static void Main() { var server = new WebServer(8000, new ControllerRouter(), new ResourceRouter()); InitializeDatabase(); MvcEngine.Run(server); }
public static void Main() { int port = 55000; WebServer server = new WebServer(port, new ControllerRouter(), new ResourceRouter()); MvcEngine.Run(server, new MyTubeDbContext()); }
static void Main(string[] args) { var router = new ControllerRouter(); var server = new Server(8000, router); MvcEngine.Run(server); }
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); }
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); }
public static void Main(string[] args) { IHttpHandler handler = new ControllerRouter(); Server server = new Server(8000, handler); var engine = new MvcEngine(); engine.Run(server); }
public static void Main(string[] args) { var server = new WebServer(1337, new ControllerRouter(), new ResourceRouter()); var dbContext = new MeTubeDbContext(); MvcEngine.Run(server, dbContext); }
public static void Main() { MvcEngine.Run( new WebServer( 1337, DependencyControllerRouter.Get(), new ResourceRouter())); }
static void Main(string[] args) { Data.Data.Context.Database.Initialize(true); HttpServer server = new HttpServer(8081, RouteTable.Routes); MvcEngine.Run(server, "Shouter.App"); }