- Timestamp:
- 09/26/10 01:56:37 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/DeploymentService
- Files:
-
- 1 added
- 1 deleted
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified 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; -
TabularUnified 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 -
TabularUnified 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;
Note: See TracChangeset
for help on using the changeset viewer.