- Timestamp:
- 11/14/11 16:25:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.Slave/3.3/Core.cs
r6983 r6989 53 53 private ConfigManager configManager; 54 54 private PluginManager pluginManager; 55 56 public Core() { 55 private bool startClientComService; 56 57 public Core() 58 : this(true) { 59 } 60 61 public Core(bool startClientComService) { 57 62 var log = new ThreadSafeLog(Settings.Default.MaxLogCount); 58 63 this.pluginManager = new PluginManager(WcfService.Instance, log); … … 64 69 this.configManager = new ConfigManager(taskManager); 65 70 ConfigManager.Instance = this.configManager; 71 72 this.startClientComService = startClientComService; 66 73 } 67 74 … … 74 81 75 82 try { 76 //start the client communication service (pipe between slave and slave gui) 77 slaveComm = new ServiceHost(typeof(SlaveCommunicationService)); 78 slaveComm.Open(); 83 if (startClientComService) { 84 //start the client communication service (pipe between slave and slave gui) 85 slaveComm = new ServiceHost(typeof(SlaveCommunicationService)); 86 slaveComm.Open(); 87 } 79 88 clientCom = SlaveClientCom.Instance.ClientCom; 80 89 … … 473 482 SlaveClientCom.Close(); 474 483 475 if (slaveComm.State != CommunicationState.Closed) 476 slaveComm.Close(); 484 if (startClientComService) { 485 if (slaveComm.State != CommunicationState.Closed) 486 slaveComm.Close(); 487 } 477 488 } 478 489
Note: See TracChangeset
for help on using the changeset viewer.