Changeset 4406
- Timestamp:
- 09/16/10 05:15:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Common/3.3/ClientFactory.cs
r4387 r4406 26 26 namespace HeuristicLab.Clients.Common { 27 27 public static class ClientFactory { 28 public static ICreateClient<T, I>()28 public static T CreateClient<T, I>() 29 29 where T : ClientBase<I>, I 30 30 where I : class { 31 31 return CreateClient<T, I>(null, null); 32 32 } 33 public static ICreateClient<T, I>(string endpointConfigurationName)33 public static T CreateClient<T, I>(string endpointConfigurationName) 34 34 where T : ClientBase<I>, I 35 35 where I : class { 36 36 return CreateClient<T, I>(endpointConfigurationName, null); 37 37 } 38 public static ICreateClient<T, I>(string endpointConfigurationName, string remoteAddress)38 public static T CreateClient<T, I>(string endpointConfigurationName, string remoteAddress) 39 39 where T : ClientBase<I>, I 40 40 where I : class { … … 53 53 client.ClientCredentials.UserName.Password = Settings.Default.Password; 54 54 client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None; 55 return (I)client;55 return client; 56 56 } 57 57 }
Note: See TracChangeset
for help on using the changeset viewer.