Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/27/10 11:11:52 (15 years ago)
Author:
gkronber
Message:

Implemented an enumerable to iterate through all PluginFiles as suggested by swagner, replaced the Assemblies enumerable with an AssemblyName enumerable for internal usage in the plugin infrastructure and replaced Assembly.LoadFrom calls with Assembly.Load() to prevent loading from GAC as far as possible.

#850 (PluginInfrastructure should provide a way to get assemblies associated with a plug-in)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Programmable/3.2/ProgrammableOperator.cs

    r2681 r2688  
    167167      foreach (var plugin in ApplicationManager.Manager.Plugins) {
    168168        var aList = new List<Assembly>();
    169         foreach (var aName in plugin.Assemblies) {
     169        foreach (var aName in from file in plugin.Files
     170                              where file.Type == PluginFileType.Assembly
     171                              select file.Name) {
    170172          Assembly a;
    171173          locationTable.TryGetValue(aName, out a);
     
    198200            assemblies.Add(a, false);
    199201          }
    200         } catch (NotSupportedException) {
     202        }
     203        catch (NotSupportedException) {
    201204          // NotSupportedException is thrown while accessing
    202205          // the Location property of the anonymously hosted
Note: See TracChangeset for help on using the changeset viewer.