Changeset 4342 for branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3
- Timestamp:
- 08/30/10 13:47:43 (14 years ago)
- Location:
- branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/SlaveService/Reference.svcmap
r4305 r4342 33 33 <MetadataFile FileName="SlaveService7.xsd" MetadataType="Schema" ID="25348808-3181-4343-bba3-796e0172b1fd" SourceId="1" SourceUrl="http://localhost:9000/SlaveService?xsd=xsd0" /> 34 34 <MetadataFile FileName="SlaveService8.xsd" MetadataType="Schema" ID="4c7dfc61-c84a-4378-b121-38f8f8f2a86a" SourceId="1" SourceUrl="http://localhost:9000/SlaveService?xsd=xsd3" /> 35 <MetadataFile FileName="SlaveService.wsdl" MetadataType="Wsdl" ID=" ef494f6e-9864-4628-b3e8-58f471d5d1bd" SourceId="1" SourceUrl="http://localhost:9000/SlaveService?wsdl=wsdl0" />35 <MetadataFile FileName="SlaveService.wsdl" MetadataType="Wsdl" ID="23cc9a85-d45a-4906-bd6e-fdedba89cc5e" SourceId="1" SourceUrl="http://localhost:9000/SlaveService?wsdl=wsdl0" /> 36 36 <MetadataFile FileName="SlaveService9.xsd" MetadataType="Schema" ID="c6237b7a-a9fd-42d5-bcc3-bb872bb61485" SourceId="1" SourceUrl="http://localhost:9000/SlaveService?xsd=xsd2" /> 37 37 </Metadata> -
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/SlaveService/SlaveFacade.wsdl
r4338 r4342 1194 1194 <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> 1195 1195 <X509Data> 1196 <X509Certificate>MIIB7jCCAVugAwIBAgIQ 3s9wqCSCIrRGeccFaiyZ+jAJBgUrDgMCHQUAMBQxEjAQB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Y2FsaG9zdIIQb2ZYEwo7H4xBuUFF+8joTjAJBgUrDgMCHQUAA4GBAFKYCuLFMQKsEfHskSvHJss4YTd9cTfP5yjyKPXBE2jb4yVy/Mzuw3lwssogREwJH54SAoUSAJhPz48bxXQdnzrkGN/zh66G2ovhuyEPEhxfgCnce3CV7dIeDpJ8uA6T40JeFfT9pWWhvH1V5qSoaXmfgoQPGP8Twg808y5XkP5m</X509Certificate> 1197 1197 </X509Data> 1198 1198 </KeyInfo> -
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/SlaveService/configuration.svcinfo
r4338 r4342 8 8 </bindings> 9 9 <endpoints> 10 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="http://localhost:9000/SlaveService" binding="wsHttpBinding" bindingConfiguration="SlaveHttpEndpoint" contract="SlaveService.ISlaveFacade" name="SlaveHttpEndpoint"><identity><certificate encodedValue="AwAAAAEAAAAUAAAA eBLH/0jWrlsW42fIC8VIIdAE6PUgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhDez3CoJIIitEZ5xwVqLJn6MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMzE1NTg0OFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCmOgweB6X4Ss6W2xb2hg1x61cjD2T7SO0ckkzmtqRhC2UWly9dBnonFJmg9RjN0y6l2tZhVzNhq8DgCkn3hPg5GL3XIwYX4PsXwNmeT6i+7s6rGbESuaEMvYOAQJSJ+MTgBvXCwo2g5nFHIBqP4W4aU2eybxP7H4cm1rQpoYHHjQIDAQABo0kwRzBFBgNVHQEEPjA8gBASDhO/IE7Ff7PpkCVF8oUpoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghDez3CoJIIitEZ5xwVqLJn6MAkGBSsOAwIdBQADgYEAhxAzm3JTV7j51jti5P7izTEs7+8534kQloeAJDwlKolkd4ZMkf0BiexC2Vt1KsnxUjrK0HbbITzazkvkAmKi7dP+4G+3SrWag5lS4NcoPjTQy16T3zC9E6yafRaZp1/pxjC3Ap44qwq4Kjl2mEjeHHsdie/h4loowTqC9FlLbgo=" /></identity></Data>" digest="<?xml version="1.0" encoding="utf-16"?><Data address="http://localhost:9000/SlaveService" binding="wsHttpBinding" bindingConfiguration="SlaveHttpEndpoint" contract="SlaveService.ISlaveFacade" name="SlaveHttpEndpoint"><identity><certificate encodedValue="AwAAAAEAAAAUAAAAeBLH/0jWrlsW42fIC8VIIdAE6PUgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhDez3CoJIIitEZ5xwVqLJn6MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMzE1NTg0OFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCmOgweB6X4Ss6W2xb2hg1x61cjD2T7SO0ckkzmtqRhC2UWly9dBnonFJmg9RjN0y6l2tZhVzNhq8DgCkn3hPg5GL3XIwYX4PsXwNmeT6i+7s6rGbESuaEMvYOAQJSJ+MTgBvXCwo2g5nFHIBqP4W4aU2eybxP7H4cm1rQpoYHHjQIDAQABo0kwRzBFBgNVHQEEPjA8gBASDhO/IE7Ff7PpkCVF8oUpoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghDez3CoJIIitEZ5xwVqLJn6MAkGBSsOAwIdBQADgYEAhxAzm3JTV7j51jti5P7izTEs7+8534kQloeAJDwlKolkd4ZMkf0BiexC2Vt1KsnxUjrK0HbbITzazkvkAmKi7dP+4G+3SrWag5lS4NcoPjTQy16T3zC9E6yafRaZp1/pxjC3Ap44qwq4Kjl2mEjeHHsdie/h4loowTqC9FlLbgo=" /></identity></Data>" contractName="SlaveService.ISlaveFacade" name="SlaveHttpEndpoint" />10 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="http://localhost:9000/SlaveService" binding="wsHttpBinding" bindingConfiguration="SlaveHttpEndpoint" contract="SlaveService.ISlaveFacade" name="SlaveHttpEndpoint"><identity><certificate encodedValue="AwAAAAEAAAAUAAAAJ5p7xBv8o/BZ9Lp1c1d+F13FxN8gAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBvZlgTCjsfjEG5QUX7yOhOMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgzMDA5MTMyMVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbjJrhOtSpfFz51JPvdfxMVSKqnWhfzjrZvtwpVsy8D589m3SeS6AalWwtkpPCR2C+a4GKo9e689o0+BtuOugypAWqkUhkz//XLvUp5KPNB7igY7he4ngMLp4GsWBWZdl+P8g29t5+nde1Tiv6dPzx5YgfB9lrvZzaS6TT/eNasQIDAQABo0kwRzBFBgNVHQEEPjA8gBBPTuRH17g8MfpeT/ODWdXuoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBvZlgTCjsfjEG5QUX7yOhOMAkGBSsOAwIdBQADgYEAUpgK4sUxAqwR8eyRK8cmyzhhN31xN8/nKPIo9cETaNvjJXL8zO7DeXCyyiBETAkfnhIChRIAmE/PjxvFdB2fOuQY3/OHrobai+G7IQ8SHF+AKdx7cJXt0h4Okny4DpPjQl4V9P2lZaG8fVXmpKhpeZ+ChA8Y/xPCDzTzLleQ/mY=" /></identity></Data>" digest="<?xml version="1.0" encoding="utf-16"?><Data address="http://localhost:9000/SlaveService" binding="wsHttpBinding" bindingConfiguration="SlaveHttpEndpoint" contract="SlaveService.ISlaveFacade" name="SlaveHttpEndpoint"><identity><certificate encodedValue="AwAAAAEAAAAUAAAAJ5p7xBv8o/BZ9Lp1c1d+F13FxN8gAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBvZlgTCjsfjEG5QUX7yOhOMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgzMDA5MTMyMVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbjJrhOtSpfFz51JPvdfxMVSKqnWhfzjrZvtwpVsy8D589m3SeS6AalWwtkpPCR2C+a4GKo9e689o0+BtuOugypAWqkUhkz//XLvUp5KPNB7igY7he4ngMLp4GsWBWZdl+P8g29t5+nde1Tiv6dPzx5YgfB9lrvZzaS6TT/eNasQIDAQABo0kwRzBFBgNVHQEEPjA8gBBPTuRH17g8MfpeT/ODWdXuoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBvZlgTCjsfjEG5QUX7yOhOMAkGBSsOAwIdBQADgYEAUpgK4sUxAqwR8eyRK8cmyzhhN31xN8/nKPIo9cETaNvjJXL8zO7DeXCyyiBETAkfnhIChRIAmE/PjxvFdB2fOuQY3/OHrobai+G7IQ8SHF+AKdx7cJXt0h4Okny4DpPjQl4V9P2lZaG8fVXmpKhpeZ+ChA8Y/xPCDzTzLleQ/mY=" /></identity></Data>" contractName="SlaveService.ISlaveFacade" name="SlaveHttpEndpoint" /> 11 11 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="http://localhost:9000/SlaveService/mex" binding="wsHttpBinding" bindingConfiguration="SlaveMexEndpoint" contract="SlaveService.ISlaveFacade" name="SlaveMexEndpoint" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address="http://localhost:9000/SlaveService/mex" binding="wsHttpBinding" bindingConfiguration="SlaveMexEndpoint" contract="SlaveService.ISlaveFacade" name="SlaveMexEndpoint" />" contractName="SlaveService.ISlaveFacade" name="SlaveMexEndpoint" /> 12 12 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://localhost:9001/SlaveServiceStreamed" binding="netTcpBinding" bindingConfiguration="SlaveTcpStreamedEndpoint" contract="SlaveService.ISlaveFacade" name="SlaveTcpStreamedEndpoint"><identity><dns value="localhost" /></identity></Data>" digest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://localhost:9001/SlaveServiceStreamed" binding="netTcpBinding" bindingConfiguration="SlaveTcpStreamedEndpoint" contract="SlaveService.ISlaveFacade" name="SlaveTcpStreamedEndpoint"><identity><dns value="localhost" /></identity></Data>" contractName="SlaveService.ISlaveFacade" name="SlaveTcpStreamedEndpoint" /> -
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/Service References/SlaveService/configuration91.svcinfo
r4338 r4342 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum=" IVbHOGoLIiHm7HALbaYOYdLHHj8=">2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="T11XGf41DbSFPlmAHGf/VqqlcJw="> 3 3 <bindingConfigurations> 4 4 <bindingConfiguration bindingType="netTcpBinding" name="SlaveTcpStreamedEndpoint"> … … 421 421 </property> 422 422 <property path="/identity/certificate/encodedValue" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 423 <serializedValue>AwAAAAEAAAAUAAAA eBLH/0jWrlsW42fIC8VIIdAE6PUgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhDez3CoJIIitEZ5xwVqLJn6MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMzE1NTg0OFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqG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xAqwR8eyRK8cmyzhhN31xN8/nKPIo9cETaNvjJXL8zO7DeXCyyiBETAkfnhIChRIAmE/PjxvFdB2fOuQY3/OHrobai+G7IQ8SHF+AKdx7cJXt0h4Okny4DpPjQl4V9P2lZaG8fVXmpKhpeZ+ChA8Y/xPCDzTzLleQ/mY=</serializedValue> 424 424 </property> 425 425 <property path="/identity/certificateReference" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateReferenceElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> -
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/SlaveServicePool.cs
r4338 r4342 8 8 using HeuristicLab.Hive.Slave.Communication.Properties; 9 9 using HeuristicLab.Tracing; 10 using System.ServiceModel.Security; 10 11 11 12 namespace HeuristicLab.Hive.Slave.Communication { … … 42 43 internal ISlaveFacade CreateStreamedSlaveFacade() { 43 44 lock (locker) { 44 if (cachedSlaveFacadeClientStreamed == null) { 45 cachedSlaveFacadeClientStreamed = new SlaveFacadeClient("SlaveTcpStreamedEndpoint"); 46 WcfSettings.SetEndpointAddress(cachedSlaveFacadeClientStreamed.Endpoint, this.serverIp); 47 SetCredentials(cachedSlaveFacadeClientStreamed); 48 cachedSlaveFacadeClientStreamed.Open(); 49 Logger.Debug("Created SlaveFacadeClientStreamed"); 45 try { 46 if (cachedSlaveFacadeClientStreamed == null) { 47 cachedSlaveFacadeClientStreamed = new SlaveFacadeClient("SlaveTcpStreamedEndpoint"); 48 WcfSettings.SetEndpointAddress(cachedSlaveFacadeClientStreamed.Endpoint, this.serverIp); 49 SetCredentials(cachedSlaveFacadeClientStreamed); 50 cachedSlaveFacadeClientStreamed.Open(); 51 Logger.Debug("Created SlaveFacadeClientStreamed"); 52 } 53 streamedClientCount++; 54 Logger.Debug("SlaveFacadeClientCount: " + streamedClientCount); 55 return cachedSlaveFacadeClientStreamed; 50 56 } 51 streamedClientCount++; 52 Logger.Debug("SlaveFacadeClientCount: " + streamedClientCount); 53 return cachedSlaveFacadeClientStreamed; 57 catch (MessageSecurityException exception) { 58 // more info in innerexception, probably credentials are wrong 59 throw exception.InnerException; 60 } 54 61 } 55 62 } 56 63 57 64 private void SetCredentials(SlaveFacadeClient client) { 65 Logger.Debug("Setting credentials for user \"" + Settings.Default.HiveUsername + "\""); 58 66 client.ClientCredentials.UserName.UserName = Settings.Default.HiveUsername; 59 67 client.ClientCredentials.UserName.Password = Settings.Default.HivePassword; … … 62 70 public void DisposeSlaveClient(ISlaveFacade slaveFacade) { 63 71 lock (locker) { 64 if (slaveFacade == cachedSlaveFacadeClient) { 65 clientCount--; 66 Logger.Debug("Disposing SlaveFacadeClient. Count: " + clientCount); 67 if (clientCount < 0) 68 throw new Exception("SlaveFacadeClient Count is less than zero. It was released too often."); 69 if (clientCount == 0) { 70 WcfSettings.DisposeWcfClient((ICommunicationObject)slaveFacade); 71 cachedSlaveFacadeClient = null; 72 if (slaveFacade != null) { 73 if (slaveFacade == cachedSlaveFacadeClient) { 74 clientCount--; 75 Logger.Debug("Disposing SlaveFacadeClient. Count: " + clientCount); 76 if (clientCount < 0) 77 throw new Exception("SlaveFacadeClient Count is less than zero. It was released too often."); 78 if (clientCount == 0) { 79 WcfSettings.DisposeWcfClient((ICommunicationObject)slaveFacade); 80 cachedSlaveFacadeClient = null; 81 } 82 } else if (slaveFacade == cachedSlaveFacadeClientStreamed) { 83 streamedClientCount--; 84 Logger.Debug("Disposing SlaveFacadeClientStreamed. Count: " + streamedClientCount); 85 if (streamedClientCount < 0) 86 throw new Exception("SlaveFacadeClientStreamed Count is less than zero. It was released too often."); 87 if (streamedClientCount == 0) { 88 WcfSettings.DisposeWcfClient((ICommunicationObject)slaveFacade); 89 cachedSlaveFacadeClientStreamed = null; 90 } 91 } else { 92 throw new Exception("Cannot dispose slaveFacade. Cannot be found in cache."); 72 93 } 73 } else if (slaveFacade == cachedSlaveFacadeClientStreamed) {74 streamedClientCount--;75 Logger.Debug("Disposing SlaveFacadeClientStreamed. Count: " + streamedClientCount);76 if (streamedClientCount < 0)77 throw new Exception("SlaveFacadeClientStreamed Count is less than zero. It was released too often.");78 if (streamedClientCount == 0) {79 WcfSettings.DisposeWcfClient((ICommunicationObject)slaveFacade);80 cachedSlaveFacadeClientStreamed = null;81 }82 } else {83 throw new Exception("Cannot dispose slaveFacade. Cannot be found in cache.");84 94 } 85 95 } // lock -
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/app.config
r4338 r4342 7 7 </configSections> 8 8 <system.serviceModel> 9 <bindings> 10 <netTcpBinding> 11 <binding name="SlaveTcpStreamedEndpoint" closeTimeout="00:01:00" 12 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 13 transactionFlow="false" transferMode="Streamed" transactionProtocol="OleTransactions" 14 hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" 15 maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="104857600"> 16 <readerQuotas maxDepth="32" maxStringContentLength="104857600" maxArrayLength="104857600" 17 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 18 <reliableSession ordered="true" inactivityTimeout="00:10:00" 19 enabled="false" /> 20 <security mode="TransportWithMessageCredential"> 21 <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> 22 <message clientCredentialType="UserName" algorithmSuite="Default" /> 23 </security> 24 </binding> 25 </netTcpBinding> 26 <wsHttpBinding> 27 <binding name="SlaveHttpEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00" 28 receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" 29 transactionFlow="false" hostNameComparisonMode="StrongWildcard" 30 maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" 31 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> 32 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 33 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 34 <reliableSession ordered="true" inactivityTimeout="00:10:00" 35 enabled="false" /> 36 <security mode="Message"> 37 <transport clientCredentialType="Windows" proxyCredentialType="None" 38 realm="" /> 39 <message clientCredentialType="UserName" negotiateServiceCredential="true" 40 algorithmSuite="Default" /> 41 </security> 42 </binding> 43 </wsHttpBinding> 44 </bindings> 45 <client> 46 <endpoint address="http://localhost:9000/SlaveService" binding="wsHttpBinding" behaviorConfiguration="SlaveServiceBehaviour" 47 bindingConfiguration="SlaveHttpEndpoint" contract="SlaveService.ISlaveFacade" 48 name="SlaveHttpEndpoint"> 49 <identity> 50 <certificate encodedValue="AwAAAAEAAAAUAAAAJ5p7xBv8o/BZ9Lp1c1d+F13FxN8gAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBvZlgTCjsfjEG5QUX7yOhOMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgzMDA5MTMyMVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbjJrhOtSpfFz51JPvdfxMVSKqnWhfzjrZvtwpVsy8D589m3SeS6AalWwtkpPCR2C+a4GKo9e689o0+BtuOugypAWqkUhkz//XLvUp5KPNB7igY7he4ngMLp4GsWBWZdl+P8g29t5+nde1Tiv6dPzx5YgfB9lrvZzaS6TT/eNasQIDAQABo0kwRzBFBgNVHQEEPjA8gBBPTuRH17g8MfpeT/ODWdXuoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBvZlgTCjsfjEG5QUX7yOhOMAkGBSsOAwIdBQADgYEAUpgK4sUxAqwR8eyRK8cmyzhhN31xN8/nKPIo9cETaNvjJXL8zO7DeXCyyiBETAkfnhIChRIAmE/PjxvFdB2fOuQY3/OHrobai+G7IQ8SHF+AKdx7cJXt0h4Okny4DpPjQl4V9P2lZaG8fVXmpKhpeZ+ChA8Y/xPCDzTzLleQ/mY=" /> 51 </identity> 52 </endpoint> 53 <endpoint address="net.tcp://localhost:9001/SlaveServiceStreamed" behaviorConfiguration="SlaveServiceBehaviour" 54 binding="netTcpBinding" bindingConfiguration="SlaveTcpStreamedEndpoint" 55 contract="SlaveService.ISlaveFacade" name="SlaveTcpStreamedEndpoint"> 56 <identity> 57 <dns value="localhost" /> 58 </identity> 59 </endpoint> 60 </client> 9 61 <behaviors> 10 62 <endpointBehaviors> … … 18 70 </endpointBehaviors> 19 71 </behaviors> 20 <bindings> 21 <netTcpBinding> 22 <binding name="SlaveTcpStreamedEndpoint" closeTimeout="00:01:00" 23 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" 24 transactionFlow="false" transferMode="Streamed" transactionProtocol="OleTransactions" 25 hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="104857600" 26 maxBufferSize="104857600" maxReceivedMessageSize="104857600"> 27 <readerQuotas maxDepth="32" maxStringContentLength="104857600" 28 maxArrayLength="104857600" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 29 <reliableSession ordered="true" inactivityTimeout="00:10:00" 30 enabled="false" /> 31 <security mode="TransportWithMessageCredential"> 32 <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> 33 <message clientCredentialType="UserName" algorithmSuite="Default" /> 34 </security> 35 </binding> 36 </netTcpBinding> 37 <wsHttpBinding> 38 <binding name="SlaveHttpEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00" 39 receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" 40 transactionFlow="false" hostNameComparisonMode="StrongWildcard" 41 maxBufferPoolSize="104857600" maxReceivedMessageSize="104857600" 42 messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" 43 allowCookies="false"> 44 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 45 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 46 <reliableSession ordered="true" inactivityTimeout="00:10:00" 47 enabled="false" /> 48 <security mode="Message"> 49 <transport clientCredentialType="Windows" proxyCredentialType="None" 50 realm="" /> 51 <message clientCredentialType="UserName" negotiateServiceCredential="true" 52 algorithmSuite="Default" /> 53 </security> 54 </binding> 55 <binding name="SlaveMexEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00" 56 receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" 57 transactionFlow="false" hostNameComparisonMode="StrongWildcard" 58 maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" 59 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> 60 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 61 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 62 <reliableSession ordered="true" inactivityTimeout="00:10:00" 63 enabled="false" /> 64 <security mode="None"> 65 <transport clientCredentialType="Windows" proxyCredentialType="None" 66 realm="" /> 67 <message clientCredentialType="Windows" negotiateServiceCredential="true" /> 68 </security> 69 </binding> 70 </wsHttpBinding> 71 </bindings> 72 <client> 73 <endpoint address="http://localhost:9000/SlaveService" binding="wsHttpBinding" behaviorConfiguration="SlaveServiceBehaviour" 74 bindingConfiguration="SlaveHttpEndpoint" contract="SlaveService.ISlaveFacade" 75 name="SlaveHttpEndpoint"> 76 <identity> 77 <certificate encodedValue="AwAAAAEAAAAUAAAAeBLH/0jWrlsW42fIC8VIIdAE6PUgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhDez3CoJIIitEZ5xwVqLJn6MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMzE1NTg0OFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCmOgweB6X4Ss6W2xb2hg1x61cjD2T7SO0ckkzmtqRhC2UWly9dBnonFJmg9RjN0y6l2tZhVzNhq8DgCkn3hPg5GL3XIwYX4PsXwNmeT6i+7s6rGbESuaEMvYOAQJSJ+MTgBvXCwo2g5nFHIBqP4W4aU2eybxP7H4cm1rQpoYHHjQIDAQABo0kwRzBFBgNVHQEEPjA8gBASDhO/IE7Ff7PpkCVF8oUpoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghDez3CoJIIitEZ5xwVqLJn6MAkGBSsOAwIdBQADgYEAhxAzm3JTV7j51jti5P7izTEs7+8534kQloeAJDwlKolkd4ZMkf0BiexC2Vt1KsnxUjrK0HbbITzazkvkAmKi7dP+4G+3SrWag5lS4NcoPjTQy16T3zC9E6yafRaZp1/pxjC3Ap44qwq4Kjl2mEjeHHsdie/h4loowTqC9FlLbgo=" /> 78 </identity> 79 </endpoint> 80 <endpoint address="http://localhost:9000/SlaveService/mex" binding="wsHttpBinding" behaviorConfiguration="SlaveMexEndpoint" 81 bindingConfiguration="SlaveMexEndpoint" contract="SlaveService.ISlaveFacade" 82 name="SlaveMexEndpoint" /> 83 <endpoint address="net.tcp://localhost:9001/SlaveServiceStreamed" behaviorConfiguration="SlaveServiceBehaviour" 84 binding="netTcpBinding" bindingConfiguration="SlaveTcpStreamedEndpoint" 85 contract="SlaveService.ISlaveFacade" name="SlaveTcpStreamedEndpoint"> 86 <identity> 87 <dns value="localhost" /> 88 </identity> 89 </endpoint> 90 </client> 72 91 73 </system.serviceModel> 92 74 <userSettings>
Note: See TracChangeset
for help on using the changeset viewer.