- Timestamp:
- 04/16/09 17:44:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server/3.2/HiveServerApplication.cs
r1530 r1579 36 36 AutoRestart = true)] 37 37 public class HiveServerApplication : ApplicationBase { 38 private const int DEFAULT_PORT = 9000;39 38 public const string STR_ClientCommunicator = "ClientCommunicator"; 40 39 public const string STR_ServerConsoleFacade = "ServerConsoleFacade"; … … 43 42 private DiscoveryService discService = new DiscoveryService(); 44 43 private Dictionary<string, ServiceHost> runningServices = new Dictionary<string, ServiceHost>(); 45 private NetTcpBinding binding = new NetTcpBinding(SecurityMode.None, true); 46 //private WSHttpBinding binding = new WSHttpBinding(SecurityMode.TransportWithMessageCredential, true); 44 private NetTcpBinding binding = (NetTcpBinding)WcfSettings.GetBinding(); 47 45 48 46 private enum Services { … … 105 103 if ((serviceHost != null) && (!String.IsNullOrEmpty(curServiceHost))) { 106 104 AddMexEndpoint(serviceHost); 105 WcfSettings.SetServiceCertificate(serviceHost); 107 106 serviceHost.Open(); 108 107 runningServices.Add(curServiceHost, serviceHost); … … 146 145 Dictionary<string, Uri> baseAddrDict = new Dictionary<string, Uri>(); 147 146 baseAddrDict.Add(STR_ClientCommunicator, 148 StartService(Services.ClientCommunicator, addresses[index], DEFAULT_PORT));147 StartService(Services.ClientCommunicator, addresses[index], WcfSettings.DEFAULTPORT)); 149 148 baseAddrDict.Add(STR_ServerConsoleFacade, 150 StartService(Services.ServerConsoleFacade, addresses[index], DEFAULT_PORT));149 StartService(Services.ServerConsoleFacade, addresses[index], WcfSettings.DEFAULTPORT)); 151 150 baseAddrDict.Add(STR_ExecutionEngineFacade, 152 StartService(Services.ExecutionEngineFacade, addresses[index], DEFAULT_PORT));151 StartService(Services.ExecutionEngineFacade, addresses[index], WcfSettings.DEFAULTPORT)); 153 152 154 153 ILifecycleManager[] lifecycleManagers = discService.GetInstances<ILifecycleManager>();
Note: See TracChangeset
for help on using the changeset viewer.