Free cookie consent management tool by TermsFeed Policy Generator

source: branches/CEDMA-Refactoring-Ticket419/HeuristicLab.Hive.Client.Console/ServiceLocator.cs @ 1106

Last change on this file since 1106 was 911, checked in by whackl, 15 years ago

bug fixed (#397)

File size: 692 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.ServiceModel;
6using HeuristicLab.Hive.Client.Communication.ClientConsole;
7
8namespace 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.