Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/ServiceLocator.cs @ 4316

Last change on this file since 4316 was 4316, checked in by cneumuel, 14 years ago

made streaming wcf-services work with Transport-Security and net.tcp but with Message-Level Credentials (#1168)

File size: 818 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Hive.Slave.Communication.SlaveService;
6using HeuristicLab.Hive.Contracts;
7
8namespace HeuristicLab.Hive.Slave.Communication {
9  internal static class ServiceLocator {
10    internal static SlaveFacadeClient CreateSlaveFacade(string hostAddress) {
11      SlaveFacadeClient client = new SlaveFacadeClient("SlaveHttpEndpoint");
12      WcfSettings.SetEndpointAddress(client.Endpoint, hostAddress);
13      return client;
14    }
15
16    internal static SlaveFacadeClient CreateStreamedSlaveFacade(string hostAddress) {
17      SlaveFacadeClient client = new SlaveFacadeClient("SlaveTcpStreamedEndpoint");
18      WcfSettings.SetEndpointAddress(client.Endpoint, hostAddress);
19      return client;
20    }
21  }
22}
Note: See TracBrowser for help on using the repository browser.