- Timestamp:
- 12/07/08 18:03:51 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server/HiveServerApplication.cs
r805 r925 88 88 if (serverConsoleInstances.Length > 0) { 89 89 ServiceHost serviceHost = 90 90 new ServiceHost(serverConsoleInstances[0].GetType(), 91 91 uriTcp); 92 92 … … 139 139 StartServerConsoleFacade(uriTcp); 140 140 141 Form mainForm = new MainForm(clientCommunicator.BaseAddresses[0],142 serverConsoleFacade.BaseAddresses[0]);141 ILifecycleManager[] lifecycleManagers = 142 discService.GetInstances<ILifecycleManager>(); 143 143 144 Application.Run(mainForm); 144 if (lifecycleManagers.Length > 0) { 145 ILifecycleManager lifecycleManager = 146 lifecycleManagers[0]; 147 148 lifecycleManager.Init(); 149 150 Form mainForm = new MainForm(clientCommunicator.BaseAddresses[0], 151 serverConsoleFacade.BaseAddresses[0]); 152 153 Application.Run(mainForm); 154 155 lifecycleManager.Shtudown(); 156 } 145 157 146 158 clientCommunicator.Close(); 147 159 serverConsoleFacade.Close(); 160 161 148 162 } 149 163 }
Note: See TracChangeset
for help on using the changeset viewer.