internal static string ToSerializedValue(this StopJobParametersStrategy value)
        {
            switch (value)
            {
            case StopJobParametersStrategy.SoftStop:
                return("SoftStop");

            case StopJobParametersStrategy.Kill:
                return("Kill");
            }
            return(null);
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the JobsStopJobParameters class.
 /// </summary>
 /// <param name="strategy">Possible values include: 'SoftStop',
 /// 'Kill'</param>
 public JobsStopJobParameters(StopJobParametersStrategy strategy)
 {
     Strategy = strategy;
     CustomInit();
 }