Changeset 12644
- Timestamp:
- 07/07/15 13:54:27 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive/3.3/Util/PluginUtil.cs
r12621 r12644 26 26 using System.Security.Cryptography; 27 27 using System.ServiceModel; 28 using HeuristicLab.Common;29 28 using HeuristicLab.Core; 30 29 using HeuristicLab.PluginInfrastructure; … … 41 40 /// <param name="neededPlugins">List of plugins which need to be uploaded</param> 42 41 /// <returns></returns> 43 public static List<Guid> GetPluginDependencies(IHiveService service, List<Plugin> onlinePlugins, List<Plugin> alreadyUploadedPlugins, IEnumerable<IPluginDescription> neededPlugins) { 42 public static List<Guid> GetPluginDependencies(IHiveService service, List<Plugin> onlinePlugins, List<Plugin> alreadyUploadedPlugins, 43 IEnumerable<IPluginDescription> neededPlugins) { 44 44 var pluginIds = new List<Guid>(); 45 45 Dictionary<IPluginDescription, byte[]> checksumsNeededPlugins = CalcChecksumsForPlugins(neededPlugins); … … 95 95 96 96 public static List<IPluginDescription> GetPluginsForTask(IEnumerable<Type> usedTypes, object task) { 97 if ( task.GetObjectGraphObjects().Any(x => typeof(IProgrammableItem).IsInstanceOfType(x))) {97 if (usedTypes.Any(x => x.GetInterfaces().Any(y => y == typeof(IProgrammableItem)))) { 98 98 //when a programmable item is used all plugins that are currently loaded need to be sent to Hive 99 99 return ApplicationManager.Manager.Plugins.ToList();
Note: See TracChangeset
for help on using the changeset viewer.