Changeset 16993 for branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Isolation/AssemblyLoader.cs
- Timestamp:
- 05/29/19 12:16:15 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Isolation/AssemblyLoader.cs
r16984 r16993 120 120 #endregion 121 121 122 123 122 private void LoadTypes(IEnumerable<Assembly> assemblies) { 124 123 foreach (Assembly asm in assemblies) { … … 136 135 } 137 136 } catch (BadImageFormatException) { } 138 } catch (Exception e) { // to catch every other exception137 } catch (Exception) { // to catch every other exception 139 138 //Tracing.Logger.Error( 140 139 // $"Exception occured while loading types of assembly {asm.FullName}! \n " + … … 147 146 foreach (string path in GetAssembliesFromBasePath(basePath)) 148 147 LoadAssemblyFromPath(path); 149 148 150 149 LoadTypes(this.Assemblies); 151 150 return this.Assemblies; … … 155 154 foreach (var info in assemblyInfos) 156 155 LoadAssemblyFromPath(info.Path.ToString()); 157 156 158 157 LoadTypes(this.Assemblies); 159 158 return this.Assemblies; … … 167 166 } // else 168 167 //Tracing.Logger.Error($"Unnable to load assembly with path {path}!"); 169 } catch (Exception e) { // to catch every exception occured by assembly loading.168 } catch (Exception) { // to catch every exception occured by assembly loading. 170 169 //Tracing.Logger.Error( 171 170 // $"Exception occured while loading assembly from path {path}! \n " +
Note: See TracChangeset
for help on using the changeset viewer.