Changeset 900 for trunk/sources
- Timestamp:
- 12/04/08 15:53:26 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r886 r900 53 53 54 54 public void Start() { 55 /*DiscoveryService discService = 55 Uri baseAddress = new Uri("http://localhost:8000/ClientConsole"); 56 string address = "net.pipe://localhost/ClientConsole/ClientConsoleCommunicator"; 57 58 DiscoveryService discService = 56 59 new DiscoveryService(); 57 60 IClientConsoleCommunicator[] clientCommunicatorInstances = … … 61 64 ServiceHost serviceHost = 62 65 new ServiceHost(clientCommunicatorInstances[0].GetType(), 63 new Uri("http://localhost:9000/ClientConsole"));66 baseAddress); 64 67 65 68 System.ServiceModel.Channels.Binding binding = 66 new NetNamedPipeBinding( );69 new NetNamedPipeBinding(NetNamedPipeSecurityMode.None); 67 70 68 71 serviceHost.AddServiceEndpoint( 69 72 typeof(IClientConsoleCommunicator), 70 73 binding, 71 "ClientConsoleCommunicator");74 address); 72 75 73 ServiceMetadataBehavior behavior = 74 new ServiceMetadataBehavior(); 75 serviceHost.Description.Behaviors.Add(behavior); 76 77 serviceHost.AddServiceEndpoint( 76 /*serviceHost.AddServiceEndpoint( 78 77 typeof(IMetadataExchange), 79 78 MetadataExchangeBindings.CreateMexNamedPipeBinding(), 80 79 "mex"); 81 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 82 88 serviceHost.Open(); 83 }*/ 89 90 } 84 91 85 92 clientCommunicator = ServiceLocator.GetClientCommunicator(); … … 89 96 //clientCommunicator.LoginAsync(ConfigurationManager.GetInstance().GetClientInfo()); 90 97 91 Heartbeat beat = new Heartbeat { Interval = 30000 };98 Heartbeat beat = new Heartbeat { Interval = 10000 }; 92 99 beat.StartHeartbeat(); 93 100
Note: See TracChangeset
for help on using the changeset viewer.