Changeset 3771 for trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
- Timestamp:
- 05/11/10 16:47:12 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
- Files:
-
- 2 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/DeploymentService/AdminClientFactory.cs
r3112 r3771 39 39 /// </summary> 40 40 static AdminClientFactory() { 41 var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.serv dev.cer");41 var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.services.heuristiclab.com.cer"); 42 42 serverCrtData = new byte[stream.Length]; 43 43 stream.Read(serverCrtData, 0, serverCrtData.Length); … … 58 58 client.ClientCredentials.UserName.Password = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationPassword; 59 59 client.Endpoint.Address = new EndpointAddress(HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationAdministrationAddress); 60 client.ClientCredentials.ServiceCertificate.DefaultCertificate = new X509Certificate2(serverCrtData); 61 client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None; 60 client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.Custom; 61 client.ClientCredentials.ServiceCertificate.Authentication.CustomCertificateValidator = 62 new DeploymentServerCertificateValidator(new X509Certificate2(serverCrtData)); 63 62 64 return client; 63 65 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/DeploymentService/RegenerateServiceClasses.cmd
r3179 r3771 1 1 # 2 svcutil http://serv dev.heuristiclab.com/Deployment-3.3/Update.svc/mex http://servdev.heuristiclab.com/Deployment-3.3/Admin.svc/mex /language:C# /targetClientVersion:Version35 /out:DeploymentService /namespace:*,HeuristicLab.PluginInfrastructure.Advanced.DeploymentService /mergeConfig /config:../../app.config2 svcutil http://services.heuristiclab.com/Deployment-3.3/Update.svc/mex http://services.heuristiclab.com/Deployment-3.3/Admin.svc/mex /language:C# /targetClientVersion:Version35 /out:DeploymentService /namespace:*,HeuristicLab.PluginInfrastructure.Advanced.DeploymentService /mergeConfig /config:../../app.config -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/DeploymentService/UpdateClientFactory.cs
r3112 r3771 39 39 /// </summary> 40 40 static UpdateClientFactory() { 41 var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.serv dev.cer");41 var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.services.heuristiclab.com.cer"); 42 42 serverCrtData = new byte[stream.Length]; 43 43 stream.Read(serverCrtData, 0, serverCrtData.Length); … … 58 58 client.ClientCredentials.UserName.Password = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationPassword; 59 59 client.Endpoint.Address = new EndpointAddress(HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocation); 60 client.ClientCredentials.ServiceCertificate.DefaultCertificate = new X509Certificate2(serverCrtData); 61 client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None; 60 client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.Custom; 61 client.ClientCredentials.ServiceCertificate.Authentication.CustomCertificateValidator = 62 new DeploymentServerCertificateValidator(new X509Certificate2(serverCrtData)); 62 63 return client; 63 64 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/EditProductsView.cs
r3721 r3771 139 139 try { 140 140 foreach (var product in products) { 141 adminClient.DeployProduct(product); 141 // only upload necessary data (product name and version, and for each plugin only plugin name and version) 142 var lightWeightProduct = new DeploymentService.ProductDescription(product.Name, product.Version); 143 lightWeightProduct.Plugins = (from plugin in product.Plugins 144 select new DeploymentService.PluginDescription(plugin.Name, plugin.Version)).ToArray(); 145 adminClient.DeployProduct(lightWeightProduct); 142 146 } 143 147 adminClient.Close();
Note: See TracChangeset
for help on using the changeset viewer.