Rev | Line | |
---|
[911] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using System.ServiceModel;
|
---|
[953] | 6 | //using HeuristicLab.Hive.Client.ClientConsole;
|
---|
[911] | 7 |
|
---|
| 8 | namespace HeuristicLab.Hive.Client.Console {
|
---|
| 9 | public class ServiceLocator {
|
---|
| 10 | private static ClientConsoleCommunicatorClient proxy = null;
|
---|
| 11 |
|
---|
| 12 | public static ClientConsoleCommunicatorClient ClientConsoleCommunicatorClient() {
|
---|
| 13 | if (proxy == null) {
|
---|
| 14 | proxy = new ClientConsoleCommunicatorClient(
|
---|
| 15 | new NetTcpBinding(),
|
---|
| 16 | new EndpointAddress("net.tcp://127.0.0.1:8000/ClientConsole/ClientConsoleCommunicator")
|
---|
| 17 | );
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | return proxy;
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.