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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Hive.Slave.Communication.SlaveService;
|
---|
6 | using HeuristicLab.Hive.Contracts;
|
---|
7 |
|
---|
8 | namespace 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.