Changeset 3771 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 05/11/10 16:47:12 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure
- Files:
-
- 2 added
- 1 deleted
- 6 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(); -
trunk/sources/HeuristicLab.PluginInfrastructure/HeuristicLab.PluginInfrastructure.csproj
r3761 r3771 83 83 <Reference Include="System.Deployment" /> 84 84 <Reference Include="System.Drawing" /> 85 <Reference Include="System.IdentityModel"> 86 <RequiredTargetFramework>3.0</RequiredTargetFramework> 87 </Reference> 85 88 <Reference Include="System.Runtime.Serialization"> 86 89 <RequiredTargetFramework>3.0</RequiredTargetFramework> … … 117 120 <DependentUpon>ConnectionSetupView.cs</DependentUpon> 118 121 </Compile> 122 <Compile Include="Advanced\DeploymentService\DeploymentServerCertificateValidator.cs" /> 119 123 <Compile Include="Advanced\EditProductsView.cs"> 120 124 <SubType>UserControl</SubType> … … 268 272 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 269 273 </Content> 274 <EmbeddedResource Include="Advanced\DeploymentService\services.heuristiclab.com.cer" /> 270 275 <None Include="Resources\Error.ico" /> 271 276 <Content Include="Resources\HeuristicLab.ico" /> … … 278 283 <Content Include="Resources\VS2008ImageLibrary_CommonElements_Actions_Add.png" /> 279 284 <Content Include="Resources\VS2008ImageLibrary_Objects_Plugin.png" /> 280 <EmbeddedResource Include="Advanced\DeploymentService\servdev.cer" />281 285 <EmbeddedResource Include="Resources.resx"> 282 286 <Generator>ResXFileCodeGenerator</Generator> -
trunk/sources/HeuristicLab.PluginInfrastructure/app.config
r3762 r3771 29 29 <bindings> 30 30 <wsHttpBinding> 31 <binding name="WSHttpBinding_IUpdate 1" closeTimeout="00:01:00"31 <binding name="WSHttpBinding_IUpdate" closeTimeout="00:01:00" 32 32 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 33 33 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" … … 46 46 </security> 47 47 </binding> 48 <binding name="WSHttpBinding_IAdmin 1" closeTimeout="00:01:00"48 <binding name="WSHttpBinding_IAdmin" closeTimeout="00:01:00" 49 49 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 50 50 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" … … 62 62 algorithmSuite="Default" establishSecurityContext="true" /> 63 63 </security> 64 </binding> 64 </binding> 65 65 </wsHttpBinding> 66 66 </bindings> 67 67 <client> 68 68 <endpoint address="http://services.heuristiclab.com/Deployment-3.3/Update.svc" 69 b ehaviorConfiguration="SerializationBehavior" binding="wsHttpBinding"70 bindingConfiguration="WSHttpBinding_IUpdate1"contract="HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.IUpdate"71 name="WSHttpBinding_IUpdate 1">69 binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IUpdate" 70 contract="HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.IUpdate" 71 name="WSHttpBinding_IUpdate"> 72 72 <identity> 73 <certificate encodedValue="AwAAAAEAAAAUAAAA FhNc5P5CrrUsDAETV1gq2wDRXQ0gAAAAAQAAACcCAAAwggIjMIIBjKADAgECAhCnTkk2TwtajEKLiJLyjCpwMA0GCSqGSIb3DQEBBAUAMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbTAeFw0xMDAzMTAxNTI4MTJaFw0zOTEyMzEyMzU5NTlaMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEArJSMi2lAXj/Z9sMiLjiUmqUfNSfozaio/mjR6PxbDPBWZp6xTFdDLnBx+kHMBp+gc75hMI6wCFHB8PYud8tHMgJFDssGBUZkEN2vFZ0h41efyXo9U0o90KVFWFBQWOz+Opnalqohh8qHnOczo1zabeLFf79pC81Y6QGNkSyQcikCAwEAAaNYMFYwVAYDVR0BBE0wS4AQ1x+ArbPOrv0XwUivnGidCKElMCMxITAfB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hnUpJiQ==" /> 74 74 </identity> 75 75 </endpoint> 76 76 <endpoint address="http://services.heuristiclab.com/Deployment-3.3/Admin.svc" 77 b ehaviorConfiguration="SerializationBehavior" binding="wsHttpBinding"78 bindingConfiguration="WSHttpBinding_IAdmin1"contract="HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.IAdmin"79 name="WSHttpBinding_IAdmin 1">77 binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IAdmin" 78 contract="HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.IAdmin" 79 name="WSHttpBinding_IAdmin"> 80 80 <identity> 81 <certificate encodedValue="AwAAAAEAAAAUAAAA FhNc5P5CrrUsDAETV1gq2wDRXQ0gAAAAAQAAACcCAAAwggIjMIIBjKADAgECAhCnTkk2TwtajEKLiJLyjCpwMA0GCSqGSIb3DQEBBAUAMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbTAeFw0xMDAzMTAxNTI4MTJaFw0zOTEyMzEyMzU5NTlaMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEArJSMi2lAXj/Z9sMiLjiUmqUfNSfozaio/mjR6PxbDPBWZp6xTFdDLnBx+kHMBp+gc75hMI6wCFHB8PYud8tHMgJFDssGBUZkEN2vFZ0h41efyXo9U0o90KVFWFBQWOz+Opnalqohh8qHnOczo1zabeLFf79pC81Y6QGNkSyQcikCAwEAAaNYMFYwVAYDVR0BBE0wS4AQ1x+ArbPOrv0XwUivnGidCKElMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbYIQp05JNk8LWoxCi4iS8owqcDANBgkqhkiG9w0BAQQFAAOBgQBU8cGNgEnkWLs3v433WBC2Sl6BiPk6IchsqfxECp1Q4j/gqsIe9xRNnjxD5YEj0HGdqjrKBwF8XrOXPgyXQXfM4ju3INGLSJ1WH/oODbgbKnqQ/7TSJ++y1x0lnDgh+ibqjchsrBrqzKfkBNOa4B3g1M9q1eNVDOyGWu7GiZAUTA==" />81 <certificate encodedValue="AwAAAAEAAAAUAAAAwK1+2oAmcy/mI2P2QjyiJRh0y60gAAAAAQAAACoCAAAwggImMIIBj6ADAgECAhAIkseQ2EEhgU720qJA61gqMA0GCSqGSIb3DQEBBAUAMCQxIjAgBgNVBAMTGXNlcnZpY2VzLmhldXJpc3RpY2xhYi5jb20wHhcNMTAwNTExMTExNDAyWhcNMzkxMjMxMjM1OTU5WjAkMSIwIAYDVQQDExlzZXJ2aWNlcy5oZXVyaXN0aWNsYWIuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCq26Bwmwc7k+4W30qLQ2j+FInEL5BuH6opDY6CSlrtt3xQS/anrhvpbf3QghLDVINzcHkzbPmm/SguG4F85QLB6xO+tJaOvRo0iEK5g3c307vMIru7FJwk/OhplEQ5J1hbDgL3zOJlrWlgtqRVxCtVdF3XroI9BctOt1NkeKv9ewIDAQABo1kwVzBVBgNVHQEETjBMgBCjbgdYd4j5JgUuJ1Wo/GxroSYwJDEiMCAGA1UEAxMZc2VydmljZXMuaGV1cmlzdGljbGFiLmNvbYIQCJLHkNhBIYFO9tKiQOtYKjANBgkqhkiG9w0BAQQFAAOBgQAb/2xk2uQad68shSPl/uixWgvFI8WkxOTBopOLaLtDxwCeZ3mWVHdV9VnixHtThubnEBXAhYOCQSIXWtQuXFWO+gH3YyjTRJY5kTmXyuvBRTn3/so5SrQ7Rdlm9hf6E5YVX3tCjAy7ybUyaDUkQfmH5vmvgvpMzRfsJ1qhnUpJiQ==" /> 82 82 </identity> 83 83 </endpoint>
Note: See TracChangeset
for help on using the changeset viewer.