Changeset 1596 for trunk/sources
- Timestamp:
- 04/17/09 13:59:28 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/3.2/ApplicationConstants.cs
r1577 r1596 76 76 public static string RESPONSE_COMMUNICATOR_JOB_DOESNT_EXIST = "No job exists with this id"; 77 77 public static string RESPONSE_COMMUNICATOR_SEND_JOBRESULT = "Please send the Jobresult to the server"; 78 public static string RESPONSE_COMMUNICATOR_PLUGINS_SENT = "Communicator.PluginsSent"; 78 79 79 80 public static string RESPONSE_JOB_ALL_JOBS = "Job.AllJobs"; -
trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/CachedHivePluginInfo.cs
r1591 r1596 27 27 namespace HeuristicLab.PluginInfrastructure { 28 28 public class CachedHivePluginInfo : HivePluginInfo { 29 29 30 30 private List<byte[]> pluginFiles = new List<byte[]>(); 31 31 /// <summary> -
trunk/sources/HeuristicLab.Hive.Contracts/3.2/ResponsePlugin.cs
r1589 r1596 10 10 [DataContract] 11 11 public class ResponsePlugin : Response { 12 public ResponsePlugin() { 13 Plugins = new List<CachedHivePluginInfo>(); 14 } 15 12 16 [DataMember] 13 17 public List<CachedHivePluginInfo> Plugins { get; set; } -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientCommunicator.cs
r1593 r1596 36 36 using HeuristicLab.PluginInfrastructure; 37 37 using HeuristicLab.DataAccess.Interfaces; 38 using System.IO; 38 39 39 40 namespace HeuristicLab.Hive.Server.Core { … … 565 566 566 567 public ResponsePlugin SendPlugins(List<HivePluginInfo> pluginList) { 567 568 569 throw new NotImplementedException(); 568 ResponsePlugin response = new ResponsePlugin(); 569 ICollection<PluginInfo> allActivePlugins = PluginManager.Manager.ActivePlugins; 570 571 foreach (HivePluginInfo pluginInfo in pluginList) { 572 foreach (PluginInfo currPlugin in allActivePlugins) { 573 if (currPlugin.Name == pluginInfo.Name 574 && currPlugin.Version.ToString() == pluginInfo.Version 575 && currPlugin.BuildDate == pluginInfo.BuildDate) { 576 577 CachedHivePluginInfo currCachedPlugin = new CachedHivePluginInfo { 578 Name = currPlugin.Name, 579 Version = currPlugin.Version.ToString(), 580 BuildDate = currPlugin.BuildDate }; 581 582 foreach (String assemblyPath in currPlugin.Assemblies) { 583 currCachedPlugin.PluginFiles.Add(File.ReadAllBytes(assemblyPath)); 584 } 585 response.Plugins.Add(currCachedPlugin); 586 } 587 } 588 } 589 response.Success = true; 590 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_PLUGINS_SENT; 591 592 return response; 593 570 594 } 571 595
Note: See TracChangeset
for help on using the changeset viewer.