Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/29/19 12:16:15 (6 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
Location:
branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces
Files:
3 edited

Legend:

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

    r16984 r16993  
    4747
    4848    /// <summary>
     49    /// Discovers and creates instances of <typeparamref name="T"/> and all types implementing or inheriting <typeparamref name="T"/> (directly and indirectly).
     50    /// </summary>
     51    /// <typeparam name="T">The type or super-type to discover.</typeparam>
     52    /// <param name="args">Constructor arguments.</param>
     53    /// <returns>An enumerable of instances of the discovered types.</returns>
     54    IEnumerable<T> GetInstances<T>(params object[] args) where T : class;
     55
     56    /// <summary>
    4957    /// Discovers and creates instances of <paramref name="type"/> and all types implementing or inheriting <paramref name="type"/> (directly and indirectly).
    5058    /// </summary>
     
    5260    /// <returns>An enumerable of instances of the discovered types.</returns>
    5361    IEnumerable<object> GetInstances(Type type);
     62
     63    /// <summary>
     64    /// Discovers and creates instances of <paramref name="type"/> and all types implementing or inheriting <paramref name="type"/> (directly and indirectly).
     65    /// </summary>
     66    /// <param name="type">The type or super-type to discover.</param>
     67    /// <param name="args">Constructor arguments.</param>
     68    /// <returns>An enumerable of instances of the discovered types.</returns>
     69    IEnumerable<object> GetInstances(Type type, params object[] args);
    5470
    5571    /// <summary>
  • branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IRunner.cs

    r16984 r16993  
    1 using System;
    2 using System.Collections.Generic;
    3 using System.IO;
    4 using System.Text;
     1using System.Collections.Generic;
    52
    63namespace HeuristicLab.PluginInfrastructure {
  • branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IRunnerHost.cs

    r16985 r16993  
    88  /// </summary>
    99  public interface IRunnerHost {
     10    /// <summary>
     11    /// The runner state.
     12    /// </summary>
     13    RunnerState State { get; }
    1014
    1115    /// <summary>
     
    3236    /// </summary>
    3337    void Resume();
    34 
    3538  }
    3639}
Note: See TracChangeset for help on using the changeset viewer.