Changeset 17025


Ignore:
Timestamp:
06/19/19 13:28:34 (19 months ago)
Author:
dpiringe
Message:

#2924:

  • added base attribute CLIBaseAttribute for CLI attributes, which contains the property Description
  • changed inheritance from Attribute to CLIBaseAttribute for types: CommandAttribute, OptionAttribute and ValueAttribute
  • added comment in RunnerHost
Location:
branches/2924_DotNetCoreMigration
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2924_DotNetCoreMigration/HeuristicLab.CommandLineInterface/Attributes/CommandAttribute.cs

    r16985 r17025  
    11using System;
     2using HeuristicLab.CommandLineInterface.Core;
    23
    34namespace HeuristicLab.CommandLineInterface {
     
    78  /// </summary>
    89  [AttributeUsage(AttributeTargets.Class)]
    9   public class CommandAttribute : Attribute {
     10  public class CommandAttribute : CLIBaseAttribute {
    1011    /// <summary>
    1112    /// To identify the command. This is the string, the user has to enter to activate this command.
     
    1718    /// </summary>
    1819    public Type[] SubCommands { get; set; } = new Type[0];
    19     /// <summary>
    20     /// Description for the command.
    21     /// </summary>
    22     public string Description { get; set; } = "";
    2320  }
    2421}
  • branches/2924_DotNetCoreMigration/HeuristicLab.CommandLineInterface/Attributes/OptionAttribute.cs

    r16985 r17025  
    11using System;
     2using HeuristicLab.CommandLineInterface.Core;
    23
    34namespace HeuristicLab.CommandLineInterface {
     
    67  /// </summary>
    78  [AttributeUsage(AttributeTargets.Property)]
    8   public class OptionAttribute : Attribute {
     9  public class OptionAttribute : CLIBaseAttribute {
    910    /// <summary>
    1011    /// An optional shortcut of the option. Takes the '-' prefix. For example: '-o'.
    1112    /// </summary>
    1213    public string Shortcut { get; set; }
    13     /// <summary>
    14     /// The description of the option.
    15     /// </summary>
    16     public string Description { get; set; }
    1714    /// <summary>
    1815    /// Set this to true to get a required option, which has always to be set from the user.
  • branches/2924_DotNetCoreMigration/HeuristicLab.CommandLineInterface/Attributes/ValueAttribute.cs

    r16985 r17025  
    11using System;
     2using HeuristicLab.CommandLineInterface.Core;
    23
    34namespace HeuristicLab.CommandLineInterface {
     
    67  /// </summary>
    78  [AttributeUsage(AttributeTargets.Property)]
    8   public class ValueAttribute : Attribute {
     9  public class ValueAttribute : CLIBaseAttribute {
    910    /// <summary>
    10     /// Description of the value.
     11    /// The index of the value order. For example: a value with index=1 has to be
     12    /// specified before a value with index=2, else an exception will be thrown.
    1113    /// </summary>
    12     public string Description { get; set; }
    13 
    1414    public int Index { get; set; }
    1515
  • branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Isolation/RunnerHost.cs

    r17013 r17025  
    7878          RedirectStandardError = true,
    7979          CreateNoWindow = false,
    80           UserName = string.IsNullOrEmpty(UserName) ? null : UserName, // TODO: accounts testen: https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/local-accounts#sec-localsystem
     80          UserName = string.IsNullOrEmpty(UserName) ? null : UserName, // to use Local accounts (LocalService, LocalSystem, ...) the process has to run already as Service
    8181          PasswordInClearText = string.IsNullOrEmpty(Password) ? null : Password,
    8282          Domain = string.IsNullOrEmpty(Domain) ? null : Domain,
Note: See TracChangeset for help on using the changeset viewer.