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/RunnerHost.cs

    r16984 r16993  
    7474          UserName = string.IsNullOrEmpty(UserName) ? null : UserName,
    7575          PasswordInClearText = string.IsNullOrEmpty(Password) ? null : Password,
    76           Domain = string.IsNullOrEmpty(Domain) ? null: Domain,
     76          Domain = string.IsNullOrEmpty(Domain) ? null : Domain,
    7777          WorkingDirectory = Directory.GetCurrentDirectory()
    7878        },
     
    8686      Runner.Serialize(runner, process.StandardInput.BaseStream);
    8787
     88      process.BeginOutputReadLine();
     89      process.BeginErrorReadLine();
     90
    8891      if (!runner.QuietMode) {
    89         process.BeginOutputReadLine();
    90         process.BeginErrorReadLine();
    9192        process.OutputDataReceived += (s, e) => Console.WriteLine(e.Data);
    9293        process.ErrorDataReceived += (s, e) => Console.WriteLine(e.Data);
     
    124125    /// When the child process gets finished without requested cancellation, the linked token gets cancelled and a result set.
    125126    /// </summary>
    126     /// <param name="token"></param>
    127     /// <returns></returns>
    128127    private Task<bool> RegisterCancellation(CancellationToken token) {
    129128      if (process != null && State == RunnerState.Starting) {
Note: See TracChangeset for help on using the changeset viewer.