Changeset 4254 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server/3.3/HeuristicLabHiveServerApplication.cs
- Timestamp:
- 08/18/10 17:23:09 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server/3.3/HeuristicLabHiveServerApplication.cs
r4253 r4254 30 30 using HeuristicLab.Hive.Contracts.Interfaces; 31 31 using HeuristicLab.PluginInfrastructure; 32 using HeuristicLab.Hive.Server.Core; 32 33 33 34 namespace HeuristicLab.Hive.Server { … … 162 163 baseAddrDict.Add(STR_ExecutionEngineFacade, StartService(Services.ExecutionEngineFacade, addresses[index], WcfSettings.DEFAULTPORT)); 163 164 164 // [chn] why is lifecyclemanager instantiated here?? shouldnt Core.ServiceLocator be used? 165 IEnumerable<ILifecycleManager> lifecycleManagers = ApplicationManager.Manager.GetInstances<ILifecycleManager>(); 166 if (lifecycleManagers.Count() > 0) { 167 ILifecycleManager lifecycleManager = lifecycleManagers.First(); 165 ILifecycleManager lifecycleManager = ServiceLocator.GetLifecycleManager(); 168 166 169 167 lifecycleManager.Init(); 170 168 171 // [chn] remove gui code here, how to display any response from server? 172 Form mainForm = new MainForm(baseAddrDict); 173 Application.Run(mainForm); 169 Form mainForm = new MainForm(baseAddrDict); 170 Application.Run(); 174 171 175 176 }172 lifecycleManager.Shutdown(); 173 177 174 StopService(Services.All); 178 175 }
Note: See TracChangeset
for help on using the changeset viewer.