- Timestamp:
- 09/26/10 01:56:37 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced
- Files:
-
- 1 added
- 1 deleted
- 3 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/DeploymentService/AdminServiceClientFactory.cs
r4493 r4495 26 26 namespace HeuristicLab.PluginInfrastructure.Advanced.DeploymentService { 27 27 /// <summary> 28 /// Factory class to generate d administrationclient instances for the deployment service.28 /// Factory class to generate administration service client instances for the deployment service. 29 29 /// </summary> 30 public static class Admin ClientFactory {30 public static class AdminServiceClientFactory { 31 31 private static byte[] serverCrtData; 32 32 … … 34 34 /// static constructor loads the embedded service certificate 35 35 /// </summary> 36 static Admin ClientFactory() {36 static AdminServiceClientFactory() { 37 37 var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.services.heuristiclab.com.cer"); 38 38 serverCrtData = new byte[stream.Length]; … … 41 41 42 42 /// <summary> 43 /// Factory method to create new administration clients for the deployment service.43 /// Factory method to create new administration service clients for the deployment service. 44 44 /// Sets the connection string and user credentials from values provided in settings. 45 45 /// HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationUserName … … 48 48 /// 49 49 /// </summary> 50 /// <returns>A new instance of an adimistration client</returns>51 public static Admin Client CreateClient() {52 var client = new Admin Client();50 /// <returns>A new instance of an adimistration service client</returns> 51 public static AdminServiceClient CreateClient() { 52 var client = new AdminServiceClient(); 53 53 client.ClientCredentials.UserName.UserName = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationUserName; 54 54 client.ClientCredentials.UserName.Password = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationPassword; -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/DeploymentService/GenerateServiceClients.cmd
r4493 r4495 1 # 2 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 1 echo off 2 3 echo. 4 echo ******************************************************************************************* 5 echo Generating DeploymentService clients 6 echo. 7 8 svcutil.exe ^ 9 http://services.heuristiclab.com/Deployment-3.3/UpdateService.svc/mex ^ 10 http://services.heuristiclab.com/Deployment-3.3/AdminService.svc/mex ^ 11 /out:ServiceClients ^ 12 /namespace:*,HeuristicLab.PluginInfrastructure.Advanced.DeploymentService ^ 13 /targetClientVersion:Version35 ^ 14 /mergeConfig ^ 15 /config:..\..\app.config 16 17 echo. 18 echo Generation of DeploymentService clients finished. 19 echo ******************************************************************************************* 20 echo. 21 22 pause -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/DeploymentService/UpdateServiceClientFactory.cs
r4493 r4495 26 26 namespace HeuristicLab.PluginInfrastructure.Advanced.DeploymentService { 27 27 /// <summary> 28 /// Factory class to generate d update client instances for the deployment service.28 /// Factory class to generate update service client instances for the deployment service. 29 29 /// </summary> 30 public static class Update ClientFactory {30 public static class UpdateServiceClientFactory { 31 31 private static byte[] serverCrtData; 32 32 … … 34 34 /// static constructor loads the embedded service certificate 35 35 /// </summary> 36 static Update ClientFactory() {36 static UpdateServiceClientFactory() { 37 37 var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.services.heuristiclab.com.cer"); 38 38 serverCrtData = new byte[stream.Length]; … … 41 41 42 42 /// <summary> 43 /// Factory method to create new update clients for the deployment service.43 /// Factory method to create new update service clients for the deployment service. 44 44 /// Sets the connection string and user credentials from values provided in settings. 45 45 /// HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationUserName … … 48 48 /// 49 49 /// </summary> 50 /// <returns>A new instance of an update client</returns>51 public static Update Client CreateClient() {52 var client = new Update Client();50 /// <returns>A new instance of an update service client</returns> 51 public static UpdateServiceClient CreateClient() { 52 var client = new UpdateServiceClient(); 53 53 client.ClientCredentials.UserName.UserName = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationUserName; 54 54 client.ClientCredentials.UserName.Password = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationPassword; -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/EditProductsView.cs
r4482 r4495 65 65 void deleteProductWorker_DoWork(object sender, DoWorkEventArgs e) { 66 66 var products = (IEnumerable<DeploymentService.ProductDescription>)e.Argument; 67 var adminClient = DeploymentService.Admin ClientFactory.CreateClient();67 var adminClient = DeploymentService.AdminServiceClientFactory.CreateClient(); 68 68 // upload 69 69 try { … … 86 86 } 87 87 // refresh 88 var updateClient = DeploymentService.Update ClientFactory.CreateClient();88 var updateClient = DeploymentService.UpdateServiceClientFactory.CreateClient(); 89 89 try { 90 90 e.Result = new object[] { updateClient.GetProducts(), updateClient.GetPlugins() }; … … 131 131 private void uploadChangedProductsWorker_DoWork(object sender, DoWorkEventArgs e) { 132 132 var products = (IEnumerable<DeploymentService.ProductDescription>)e.Argument; 133 var adminClient = DeploymentService.Admin ClientFactory.CreateClient();133 var adminClient = DeploymentService.AdminServiceClientFactory.CreateClient(); 134 134 // upload 135 135 try { … … 152 152 } 153 153 // refresh 154 var updateClient = DeploymentService.Update ClientFactory.CreateClient();154 var updateClient = DeploymentService.UpdateServiceClientFactory.CreateClient(); 155 155 try { 156 156 e.Result = new object[] { updateClient.GetProducts(), updateClient.GetPlugins() }; … … 196 196 #region event handlers for refresh products background worker 197 197 private void refreshProductsWorker_DoWork(object sender, DoWorkEventArgs e) { 198 var updateClient = DeploymentService.Update ClientFactory.CreateClient();198 var updateClient = DeploymentService.UpdateServiceClientFactory.CreateClient(); 199 199 try { 200 200 e.Result = new object[] { updateClient.GetProducts(), updateClient.GetPlugins() }; -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/InstallationManager.cs
r4482 r4495 49 49 /// <returns></returns> 50 50 public IEnumerable<IPluginDescription> GetRemotePluginList() { 51 var client = DeploymentService.Update ClientFactory.CreateClient();51 var client = DeploymentService.UpdateServiceClientFactory.CreateClient(); 52 52 try { 53 53 List<IPluginDescription> plugins = new List<IPluginDescription>(client.GetPlugins()); … … 74 74 /// <returns></returns> 75 75 public IEnumerable<DeploymentService.ProductDescription> GetRemoteProductList() { 76 var client = DeploymentService.Update ClientFactory.CreateClient();76 var client = DeploymentService.UpdateServiceClientFactory.CreateClient(); 77 77 try { 78 78 List<DeploymentService.ProductDescription> products = new List<DeploymentService.ProductDescription>(client.GetProducts()); … … 102 102 OnPreInstall(args); 103 103 if (!args.Cancel) { 104 var client = DeploymentService.Update ClientFactory.CreateClient();104 var client = DeploymentService.UpdateServiceClientFactory.CreateClient(); 105 105 try { 106 106 foreach (DeploymentService.PluginDescription plugin in plugins) { … … 134 134 OnPreUpdate(args); 135 135 if (!args.Cancel) { 136 var client = DeploymentService.Update ClientFactory.CreateClient();136 var client = DeploymentService.UpdateServiceClientFactory.CreateClient(); 137 137 try { 138 138 foreach (DeploymentService.PluginDescription plugin in plugins) { -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/UploadPluginsView.cs
r4482 r4495 78 78 void refreshPluginsWorker_DoWork(object sender, DoWorkEventArgs e) { 79 79 // refresh available plugins 80 var client = DeploymentService.Update ClientFactory.CreateClient();80 var client = DeploymentService.UpdateServiceClientFactory.CreateClient(); 81 81 try { 82 82 e.Result = client.GetPlugins(); … … 115 115 // upload plugins 116 116 var selectedPlugins = (IEnumerable<IPluginDescription>)e.Argument; 117 DeploymentService.Admin Client adminClient = DeploymentService.AdminClientFactory.CreateClient();117 DeploymentService.AdminServiceClient adminClient = DeploymentService.AdminServiceClientFactory.CreateClient(); 118 118 Dictionary<IPluginDescription, DeploymentService.PluginDescription> cachedPluginDescriptions = 119 119 new Dictionary<IPluginDescription, DeploymentService.PluginDescription>(); … … 137 137 } 138 138 // refresh available plugins 139 var client = DeploymentService.Update ClientFactory.CreateClient();139 var client = DeploymentService.UpdateServiceClientFactory.CreateClient(); 140 140 try { 141 141 e.Result = client.GetPlugins();
Note: See TracChangeset
for help on using the changeset viewer.