Changeset 901
- Timestamp:
- 12/04/08 16:28:22 (16 years ago)
- 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 68 68 <ItemGroup> 69 69 <Compile Include="ClientConsoleCommunicator.cs" /> 70 <Compile Include="ClientConsoleServer.cs" /> 70 71 <Compile Include="ClientConsole\ConnectionContainer.cs" /> 71 72 <Compile Include="ClientConsole\JobStatus.cs" /> -
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r900 r901 53 53 54 54 public void Start() { 55 Uri baseAddress = new Uri("http://localhost:8000/ClientConsole");56 string address = "net.pipe://localhost/ClientConsole/ClientConsoleCommunicator";57 55 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/")); 91 58 92 59 clientCommunicator = ServiceLocator.GetClientCommunicator();
Note: See TracChangeset
for help on using the changeset viewer.