Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12673 for trunk


Ignore:
Timestamp:
07/08/15 10:50:52 (9 years ago)
Author:
abeham
Message:

#2409: corrected check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/Util/PluginUtil.cs

    r12644 r12673  
    6363              alreadyUploadedPlugins.Add(p);
    6464              pluginIds.Add(p.Id);
    65             }
    66             catch (FaultException<PluginAlreadyExistsFault> fault) {
     65            } catch (FaultException<PluginAlreadyExistsFault> fault) {
    6766              onlinePlugins.Add(service.GetPlugin(fault.Detail.Id));
    6867            }
     
    9594
    9695    public static List<IPluginDescription> GetPluginsForTask(IEnumerable<Type> usedTypes, object task) {
    97       if (usedTypes.Any(x => x.GetInterfaces().Any(y => y == typeof(IProgrammableItem)))) {
     96      if (usedTypes.Any(x => typeof(IProgrammableItem).IsAssignableFrom(x))) {
    9897        //when a programmable item is used all plugins that are currently loaded need to be sent to Hive
    9998        return ApplicationManager.Manager.Plugins.ToList();
Note: See TracChangeset for help on using the changeset viewer.