Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/16/09 17:44:58 (16 years ago)
Author:
mbecirov
Message:

#528: WCF Service secured - you need to install the certificate in order to run the application properly!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server/3.2/HiveServerApplication.cs

    r1530 r1579  
    3636      AutoRestart = true)]
    3737  public class HiveServerApplication : ApplicationBase {
    38     private const int DEFAULT_PORT = 9000;
    3938    public const string STR_ClientCommunicator = "ClientCommunicator";
    4039    public const string STR_ServerConsoleFacade = "ServerConsoleFacade";
     
    4342    private DiscoveryService discService = new DiscoveryService();
    4443    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();
    4745
    4846    private enum Services {
     
    105103      if ((serviceHost != null) && (!String.IsNullOrEmpty(curServiceHost))) {
    106104        AddMexEndpoint(serviceHost);
     105        WcfSettings.SetServiceCertificate(serviceHost);
    107106        serviceHost.Open();
    108107        runningServices.Add(curServiceHost, serviceHost);
     
    146145      Dictionary<string, Uri> baseAddrDict = new Dictionary<string, Uri>();
    147146      baseAddrDict.Add(STR_ClientCommunicator,
    148         StartService(Services.ClientCommunicator, addresses[index], DEFAULT_PORT));
     147        StartService(Services.ClientCommunicator, addresses[index], WcfSettings.DEFAULTPORT));
    149148      baseAddrDict.Add(STR_ServerConsoleFacade,
    150         StartService(Services.ServerConsoleFacade, addresses[index], DEFAULT_PORT));
     149        StartService(Services.ServerConsoleFacade, addresses[index], WcfSettings.DEFAULTPORT));
    151150      baseAddrDict.Add(STR_ExecutionEngineFacade,
    152         StartService(Services.ExecutionEngineFacade, addresses[index], DEFAULT_PORT));
     151        StartService(Services.ExecutionEngineFacade, addresses[index], WcfSettings.DEFAULTPORT));
    153152
    154153      ILifecycleManager[] lifecycleManagers =  discService.GetInstances<ILifecycleManager>();
Note: See TracChangeset for help on using the changeset viewer.