Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17782


Ignore:
Timestamp:
11/18/20 10:58:42 (4 years ago)
Author:
gkronber
Message:

#3088: ignore dynamic assemblies and assemblies with empty location in GetTypes(Type type, bool onlyInstantiable, bool includeGenericTypeDefinitions) method.

Reasoning: when hive job manager is loaded at least one dynamic assembly is loaded for WCF call wrappers. This causes an exception in PluginInfrastructure when trying to load the types in the dynamic assembly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.PluginInfrastructure/3.3/SandboxApplicationManager.cs

    r17180 r17782  
    227227    internal static IEnumerable<Type> GetTypes(Type type, bool onlyInstantiable, bool includeGenericTypeDefinitions) {
    228228      return from asm in AppDomain.CurrentDomain.GetAssemblies()
     229             where !asm.IsDynamic && !string.IsNullOrEmpty(asm.Location)
    229230             from t in GetTypes(type, asm, onlyInstantiable, includeGenericTypeDefinitions)
    230231             select t;
Note: See TracChangeset for help on using the changeset viewer.