示例#1
0
 static void Main(string[] args)
 {
     using (_dm = new DependencyManager())
     {
         _dm.InitDIContainer();
         var gameEngine = _dm.CreateGame();
         gameEngine.Start();
         Console.ReadKey();
         gameEngine.Stop();
     }
 }
示例#2
0
        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();
        }