Changeset 1587 for trunk/sources
- Timestamp:
- 04/17/09 11:23:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/3.2/WcfSettings.cs
r1579 r1587 1 #define USE_MSG_BINDING1 //#define USE_MSG_BINDING 2 2 using System; 3 3 using System.Collections.Generic; … … 23 23 NetTcpBinding binding = new NetTcpBinding(SecurityMode.Message); 24 24 #else 25 NetTcpBinding binding = new NetTcpBinding(SecurityMode.TransportWithMessageCredential); 26 binding.Security.Message.ClientCredentialType = MessageCredentialType.Certificate; 25 NetTcpBinding binding = new NetTcpBinding(); 27 26 #endif 28 27 return binding; … … 34 33 /// <param name="svchost">A service for which this certificate is applicable.</param> 35 34 public static void SetServiceCertificate(ServiceHost svchost) { 35 #if USE_MSG_BINDING 36 36 svchost.Credentials.ServiceCertificate.SetCertificate( 37 37 StoreLocation.LocalMachine, … … 39 39 X509FindType.FindBySubjectName, 40 40 SERVERCERT); 41 #endif 41 42 } 42 43
Note: See TracChangeset
for help on using the changeset viewer.