Example #1
0
 protected override void OnStart(string[] args)
 {
     ORMConfig.RegisterORM();
     _taskService   = new TaskService();
     _serverService = new ServerService();
     _serverService.Register();
     _taskService.StartUp();
 }
Example #2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     ORMConfig.RegisterORM();
     //new ServerService().Register();
     //new TaskService().StartUp();
 }