Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/09/08 14:27:45 (16 years ago)
Author:
gkronber
Message:

fixed #422 (Persistence doesn't work for types in plugins with multiple assemblies)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/DiscoveryService.cs

    r750 r927  
    119119
    120120    public PluginInfo GetDeclaringPlugin(Type type) {
    121       IPlugin[] plugins = GetInstances<IPlugin>(type.Assembly);
    122       if(plugins.Length != 1) return null;
    123       IPlugin plugin = plugins[0];
    124121      foreach(PluginInfo info in PluginManager.Manager.LoadedPlugins) {
    125         if(info.Name == plugin.Name && info.Version == plugin.Version) return info;
     122        if(info.Assemblies.Contains(type.Assembly.Location)) return info;
    126123      }
    127124      return null;
Note: See TracChangeset for help on using the changeset viewer.