Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/24/10 15:31:35 (14 years ago)
Author:
cneumuel
Message:
  • made ServerConsole work with wsHttpBinding
  • applied role-base restrictions to all WCF-Services
  • made wcf-services work with certificates
  • renamed ExecutionEngineFacade to ClientFacade

(#1168)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/WcfService.cs

    r4289 r4302  
    9090
    9191        Logger.Debug("Creating the new connection proxy");
    92         proxy = new SlaveFacadeClient(
    93           HeuristicLab.Hive.Contracts.WcfSettings.GetStreamedBinding(),
    94           new EndpointAddress("net.tcp://" + ServerIP + ":" + ServerPort + "/HiveServer/SlaveCommunicator")
    95         );
     92        proxy = CreateSlaveFacadeClient();
    9693        Logger.Debug("Created the new connection proxy");
    9794
     
    122119        HandleNetworkError(ex);
    123120      }
     121    }
     122
     123    private SlaveFacadeClient CreateSlaveFacadeClient() {
     124      //return new SlaveFacadeClient(
     125      //  HeuristicLab.Hive.Contracts.WcfSettings.GetStreamedBinding(),
     126      //  new EndpointAddress("net.tcp://" + ServerIP + ":" + ServerPort + "/HiveServer/SlaveCommunicator")
     127      //);
     128      SlaveFacadeClient client = new SlaveFacadeClient("SlaveHttpEndpoint");
     129      WcfSettings.SetEndpointAddress(client.Endpoint, string.Format("http://{0}:{1}/{2}", ServerIP, ServerPort, WcfSettings.SlaveServiceName));
     130      return client;
    124131    }
    125132
Note: See TracChangeset for help on using the changeset viewer.