Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/29/19 12:16:15 (5 years ago)
Author:
dpiringe
Message:

#2924:

  • added IEnumerable<T> GetInstances<T>(params object[] args) where T: class and IEnumerable<object> GetInstances(Type type, params object[] args) method to IApplicationManager and implemented them in LightweightApplicationManager -> to instantiate types with specific constructor arguments
  • added RunnerState State { get; } property in IRunnerHost, was already in RunnerHost
  • added user authentication for NativeRunnerHost
  • added optional check for a running docker daemon and available image for type DockerRunnerHost + Exception DockerException
  • added caching of the saved IApplication in ApplicationRunner to prevent a new instance every get call
  • removed System.ServiceModel.Primitives NuGet package
  • lots of formatting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Isolation/AssemblyLoader.cs

    r16984 r16993  
    120120    #endregion
    121121
    122 
    123122    private void LoadTypes(IEnumerable<Assembly> assemblies) {
    124123      foreach (Assembly asm in assemblies) {
     
    136135            }
    137136          } catch (BadImageFormatException) { }
    138         } catch (Exception e) { // to catch every other exception
     137        } catch (Exception) { // to catch every other exception
    139138          //Tracing.Logger.Error(
    140139          //  $"Exception occured while loading types of assembly {asm.FullName}! \n " +
     
    147146      foreach (string path in GetAssembliesFromBasePath(basePath))
    148147        LoadAssemblyFromPath(path);
    149      
     148
    150149      LoadTypes(this.Assemblies);
    151150      return this.Assemblies;
     
    155154      foreach (var info in assemblyInfos)
    156155        LoadAssemblyFromPath(info.Path.ToString());
    157      
     156
    158157      LoadTypes(this.Assemblies);
    159158      return this.Assemblies;
     
    167166        } // else
    168167          //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.
    170169        //Tracing.Logger.Error(
    171170        //  $"Exception occured while loading assembly from path {path}! \n " +
Note: See TracChangeset for help on using the changeset viewer.