Changeset 5280 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4
- Timestamp:
- 01/11/11 17:29:40 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4/Program.cs
r5156 r5280 21 21 22 22 using System; 23 using System.ServiceModel;24 23 using System.Threading; 25 24 using HeuristicLab.Clients.Hive.Salve; … … 32 31 //mock the hive service for testing purposes 33 32 ServiceLocator.Instance = new MockServiceLocator(); 34 35 33 //slave part 36 34 Core core = new Core(); 37 ServiceHost slaveComm = new ServiceHost(typeof(SlaveCommunicationService)); 38 slaveComm.Open(); 35 Console.WriteLine("Starting core ..."); 36 Thread coreThread = new Thread(core.Start); 37 coreThread.IsBackground = true; //dont keep app alive 38 coreThread.Start(); 39 Thread.Sleep(1000); 39 40 40 Console.WriteLine("Slave communication service started ...");41 41 //mock a slave client 42 42 SlaveCommListener listener = new SlaveCommListener(); 43 43 listener.Open(); 44 44 45 Console.WriteLine("Starting core ...");46 Thread coreThread = new Thread(core.Start);47 coreThread.IsBackground = true; //dont keep app alive48 coreThread.Start();49 50 45 Console.WriteLine("Press a key to quit"); 51 46 Console.ReadKey(); 52 core.ShutdownCore();53 47 listener.Close(); 54 55 if (slaveComm.State != CommunicationState.Closed) 56 slaveComm.Close(); 48 core.Shutdown(); 49 Console.ReadKey(); 57 50 } 58 51 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.4/app.config
r5156 r5280 3 3 4 4 <system.serviceModel> 5 <bindings> 6 <wsHttpBinding> 7 <binding name="wsHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> 8 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/> 9 <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/> 10 <security mode="Message"> 11 <transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/> 12 <message clientCredentialType="UserName" negotiateServiceCredential="true" algorithmSuite="Default"/> 13 </security> 14 </binding> 15 </wsHttpBinding> 16 </bindings> 17 5 18 <services> 6 19 <service name="HeuristicLab.Clients.Hive.Slave.SlaveCommunicationService"> … … 8 21 </service> 9 22 </services> 10 </system.serviceModel>11 23 24 <client> 25 <endpoint address="http://localhost:9000/Hive-3.4" 26 binding="wsHttpBinding" 27 bindingConfiguration="wsHttpBinding" 28 contract="HeuristicLab.Services.Hive.Common.ServiceContracts.IHiveService" 29 name="wsHttpBinding_IHiveService"> 30 <identity> 31 <certificate encodedValue="AwAAAAEAAAAUAAAAfEKvcVixnJay+q4hCPFuO0JL5TQgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMTAxOTEwNTMxNVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXwC5TGcAffd/0oAWHtm0s6YXVXEgXgb1AYmBkkkhkKIFJG/e/Z0KSYbJepmSJD44W3oOAVm+x1DAsZxU79HahDYgWCuHLMm1TLpwSmYOQ0kV3pGHWHhiWV7h7oGLds/eqZ2EOpaNGryfEPnrA4VmxY91vV5/2BTeVSWG6F8lRKQIDAQABo0kwRzBFBgNVHQEEPjA8gBAR7kBnMRHO5gzThEqda0wWoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghCNN5wrUcXMmE/9xwp4TYa9MAkGBSsOAwIdBQADgYEAoPwEG4QTDXhlxERNDfsZmM2IhEpV42ppz1kEah2oYKDa/ElIMVtvqLv6flVtg18ENN/mEJWiHZ3NyP3qr2Pip+sh+/2WBiSbOaukES/CM7OJn9kJCImH7M/xqM8pxqY8IfgM6iBVrVj9uHqj3j2BBck+cYY8fKyh3CFifMIp6ac="/> 32 </identity> 33 </endpoint> 34 </client> 35 36 </system.serviceModel> 12 37 <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Note: See TracChangeset
for help on using the changeset viewer.