Free cookie consent management tool by TermsFeed Policy Generator

Changeset 901 for trunk/sources


Ignore:
Timestamp:
12/04/08 16:28:22 (16 years ago)
Author:
kgrading
Message:

cont on #401

Location:
trunk/sources
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Communication/HeuristicLab.Hive.Client.Communication.csproj

    r858 r901  
    6868  <ItemGroup>
    6969    <Compile Include="ClientConsoleCommunicator.cs" />
     70    <Compile Include="ClientConsoleServer.cs" />
    7071    <Compile Include="ClientConsole\ConnectionContainer.cs" />
    7172    <Compile Include="ClientConsole\JobStatus.cs" />
  • trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs

    r900 r901  
    5353
    5454    public void Start() {
    55       Uri baseAddress = new Uri("http://localhost:8000/ClientConsole");
    56       string address = "net.pipe://localhost/ClientConsole/ClientConsoleCommunicator";
    5755
    58       DiscoveryService discService =
    59         new DiscoveryService();
    60       IClientConsoleCommunicator[] clientCommunicatorInstances =
    61         discService.GetInstances<IClientConsoleCommunicator>();
    62 
    63       if (clientCommunicatorInstances.Length > 0) {
    64         ServiceHost serviceHost =
    65                 new ServiceHost(clientCommunicatorInstances[0].GetType(),
    66                   baseAddress);
    67 
    68         System.ServiceModel.Channels.Binding binding =
    69           new NetNamedPipeBinding(NetNamedPipeSecurityMode.None);
    70 
    71         serviceHost.AddServiceEndpoint(
    72           typeof(IClientConsoleCommunicator),
    73               binding,
    74               address);
    75 
    76         /*serviceHost.AddServiceEndpoint(
    77             typeof(IMetadataExchange),
    78             MetadataExchangeBindings.CreateMexNamedPipeBinding(),
    79             "mex");
    80 
    81         serviceHost.Open();*/
    82 
    83         ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
    84         smb.HttpGetEnabled = true;
    85         smb.HttpGetUrl = new Uri("http://localhost:8001/ClientConsole/");
    86         serviceHost.Description.Behaviors.Add(smb);
    87 
    88         serviceHost.Open();
    89 
    90       }
     56      ClientConsoleServer server = new ClientConsoleServer();
     57      server.StartClientConsoleServer(new Uri("net.tcp://127.0.0.1:8000/ClientConsole/"));
    9158
    9259      clientCommunicator = ServiceLocator.GetClientCommunicator();
Note: See TracChangeset for help on using the changeset viewer.