static void Main(string[] args) { using (_dm = new DependencyManager()) { _dm.InitDIContainer(); var gameEngine = _dm.CreateGame(); gameEngine.Start(); Console.ReadKey(); gameEngine.Stop(); } }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); _dm = new DependencyManager(); _dm.InitDIContainer(); _gi = _dm.CreateGame(); ServerEndPoint = _gi.Start(); }