Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/24/19 12:28:29 (6 years ago)
Author:
dpiringe
Message:

#2924:

  • merged projects HeuristicLab.PluginInfrastructure.Runner and HeuristicLab.PluginInfrastructure
  • applied changes of code reviews (13.05.2019 and 22.05.2019) -> the old Runner is now RunnerHost and uses a Runner, which is executed on the child process
  • added Type GetType(string) to IApplicationManager and implemented it for LightweightApplicationManager
  • removed IActivator and IActivatorContext
  • deleted unused types like PluginDescriptionIterator
Location:
branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IApplication.cs

    r15973 r16984  
    3838    /// </summary>
    3939    void Run(ICommandLineArgument[] args);
     40
     41    /// <summary>
     42    /// This method gets called when a cancellation is invoked.
     43    /// </summary>
     44    void OnCancel();
     45
     46    /// <summary>
     47    /// This method gets called when a pause is invoked.
     48    /// </summary>
     49    void OnPause();
     50
     51    /// <summary>
     52    /// This method gets called when a resume is invoked.
     53    /// </summary>
     54    void OnResume();
    4055  }
    4156}
  • branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IApplicationManager.cs

    r15973 r16984  
    5252    /// <returns>An enumerable of instances of the discovered types.</returns>
    5353    IEnumerable<object> GetInstances(Type type);
     54
     55    /// <summary>
     56    /// Discovers a specific type by its name.
     57    /// </summary>
     58    /// <param name="typeName">Full name of the type.</param>
     59    /// <returns>A type or null, if nothing was found.</returns>
     60    Type GetType(string typeName);
    5461
    5562    /// <summary>
  • branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IAssemblyLoader.cs

    r16859 r16984  
    22using System.Collections.Generic;
    33using System.Reflection;
    4 using System.Text;
    54
    65namespace HeuristicLab.PluginInfrastructure {
     6  /// <summary>
     7  /// Interface for an assembly loading mechanism
     8  /// </summary>
    79  public interface IAssemblyLoader {
    8     string BasePath { get; set; }
    9 
    1010    /// <summary>
    1111    /// Returns all loaded assemblies.
    1212    /// </summary>
    1313    IEnumerable<Assembly> Assemblies { get; }
     14
    1415    /// <summary>
    1516    /// Returns all types.
     
    1819
    1920    /// <summary>
    20     /// Returns all assemblies included in BasePath.
     21    /// Loads all assemblies (.dll/.exe) in the specified path.
    2122    /// </summary>
    22     /// <returns></returns>
    23     IEnumerable<Assembly> GetReflectionOnlyAssemblies();
     23    /// <param name="basePath">Path to root directory of all assemblies to load.</param>
     24    /// <returns>An IEnumerable of assemblies.</returns>
     25    IEnumerable<Assembly> LoadAssemblies(string basePath);
    2426
    2527    /// <summary>
    26     /// Loads all assembliesm which are given by the assemblyName argument, into the current context.
     28    /// Loads all specified assemblies.
    2729    /// </summary>
    28     /// <param name="assemblyNames"></param>
    29     /// <returns>All loaded assemblies.</returns>
    30     IEnumerable<Assembly> LoadAssemblies(IEnumerable<AssemblyName> assemblyNames);
    31 
     30    /// <param name="assemblyInfos">Infos for all assemblies to load.</param>
     31    /// <returns>An IEnumerable of assemblies.</returns>
     32    IEnumerable<Assembly> LoadAssemblies(IEnumerable<AssemblyInfo> assemblyInfos);
    3233  }
    3334}
  • branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IPluginLoader.cs

    r16859 r16984  
    1 using System;
    2 using System.Collections.Generic;
    3 using System.Text;
    4 using HeuristicLab.PluginInfrastructure;
     1using System.Collections.Generic;
    52
    63namespace HeuristicLab.PluginInfrastructure {
     4  /// <summary>
     5  /// Interface for a plugin load mechanism.
     6  /// </summary>
    77  public interface IPluginLoader {
    8     /// <summary>
    9     /// Returns all activators found.
    10     /// </summary>
    11     IList<IActivator> Activators { get; }
    12 
    138    /// <summary>
    149    /// Returns all plugins found.
    1510    /// </summary>
    16     IList<IPlugin> Plugins { get; }
     11    IEnumerable<IPlugin> Plugins { get; }
    1712
    1813    /// <summary>
    1914    /// Returns all Applications found.
    2015    /// </summary>
    21     IList<IApplication> Applications { get; }
     16    IEnumerable<IApplication> Applications { get; }
     17
     18    /// <summary>
     19    /// Load plugins, definied by the given AssemblyInfos.
     20    /// </summary>
     21    /// <param name="assemblyInfos">AssemblyInfos for the assemblies, which should be loaded.</param>
     22    void LoadPlugins(IEnumerable<AssemblyInfo> assemblyInfos);
     23
     24    /// <summary>
     25    /// Searches for .dll/.exe files and validates them.
     26    /// </summary>
     27    /// <param name="basePath">Path of the root directory for the assemblies to validate.</param>
     28    /// <returns>A IEnumerable of AssemblyInfos, which contains all loadable assemblies. </returns>
     29    IEnumerable<AssemblyInfo> Validate(string basePath);
    2230  }
    2331}
  • branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IRunner.cs

    r16859 r16984  
    11using System;
    22using System.Collections.Generic;
     3using System.IO;
    34using System.Text;
    45
    56namespace HeuristicLab.PluginInfrastructure {
    6 
    7   /// <summary>
    8   /// Interface for all runner implementations.
    9   /// </summary>
    107  public interface IRunner {
    118    /// <summary>
    12     /// Method to start the runner which scans all assemblies in the given basePath argument.
    13     /// Additionally, arguments can be specified, which are forwarded to all activators.
     9    /// Set this to true, if console output should be disabled.
    1410    /// </summary>
    15     /// <param name="basePath"></param>
    16     /// <param name="args"></param>
    17     void Start(string basePath, string[] args);
     11    bool QuietMode { get; set; }
    1812
    19     void Stop();
     13    /// <summary>
     14    /// Assemblies which the child process needs to load.
     15    /// </summary>
     16    IEnumerable<AssemblyInfo> AssembliesToLoad { get; set; }
     17
     18    /// <summary>
     19    /// Method to run the runner.
     20    /// </summary>
     21    void Run();
    2022  }
    2123}
Note: See TracChangeset for help on using the changeset viewer.