Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/14/11 16:25:18 (12 years ago)
Author:
spimming
Message:

#1680:

  • start client communication service optionally
  • make slave client communication interchangeable ('PipeCom', 'TraceCom')
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.Slave/3.3/Core.cs

    r6983 r6989  
    5353    private ConfigManager configManager;
    5454    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) {
    5762      var log = new ThreadSafeLog(Settings.Default.MaxLogCount);
    5863      this.pluginManager = new PluginManager(WcfService.Instance, log);
     
    6469      this.configManager = new ConfigManager(taskManager);
    6570      ConfigManager.Instance = this.configManager;
     71
     72      this.startClientComService = startClientComService;
    6673    }
    6774
     
    7481
    7582      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        }
    7988        clientCom = SlaveClientCom.Instance.ClientCom;
    8089
     
    473482      SlaveClientCom.Close();
    474483
    475       if (slaveComm.State != CommunicationState.Closed)
    476         slaveComm.Close();
     484      if (startClientComService) {
     485        if (slaveComm.State != CommunicationState.Closed)
     486          slaveComm.Close();
     487      }
    477488    }
    478489
Note: See TracChangeset for help on using the changeset viewer.