Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Isolation/NativeRunnerHost.cs @ 16993

Last change on this file since 16993 was 16993, checked in by dpiringe, 5 years ago

#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 size: 542 bytes
Line 
1using System.IO;
2
3namespace HeuristicLab.PluginInfrastructure {
4  /// <summary>
5  /// IRunner for isolation with a native process.
6  /// </summary>
7  public class NativeRunnerHost : RunnerHost {
8    #region Constructors
9    public NativeRunnerHost() : this(null, null, null) {
10    }
11
12    public NativeRunnerHost(string userName, string password, string domain)
13      : base($"{Directory.GetCurrentDirectory()}{Path.DirectorySeparatorChar}HeuristicLab-3.3.exe", "", userName, password, domain) {
14    }
15    #endregion
16  }
17}
Note: See TracBrowser for help on using the repository browser.