Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExitCodeMapping"/> class.
 /// </summary>
 /// <param name='code'>The process exit code.</param>
 /// <param name='exitOptions'>How the Batch service should respond if the task exits with this exit code.</param>
 public ExitCodeMapping(
     int code,
     ExitOptions exitOptions)
 {
     this.code        = code;
     this.exitOptions = exitOptions;
 }
 internal PSExitOptions(Microsoft.Azure.Batch.ExitOptions omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
 internal PSExitOptions(Microsoft.Azure.Batch.ExitOptions omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExitCodeRangeMapping"/> class.
 /// </summary>
 /// <param name='start'>The first exit code in the range.</param>
 /// <param name='end'>The last exit code in the range.</param>
 /// <param name='exitOptions'>An <see cref="ExitOptions" /> specifying how the Batch service should respond if the task exits with an exit
 /// code in the range <see cref="Start"/> to <see cref="End"/> inclusive.</param>
 public ExitCodeRangeMapping(
     int start,
     int end,
     ExitOptions exitOptions)
 {
     this.start       = start;
     this.end         = end;
     this.exitOptions = exitOptions;
 }
 public PSExitOptions()
 {
     this.omObject = new Microsoft.Azure.Batch.ExitOptions();
 }
 public PSExitOptions()
 {
     this.omObject = new Microsoft.Azure.Batch.ExitOptions();
 }
 internal ExitCodeRangeMapping(Models.ExitCodeRangeMapping protocolObject)
 {
     this.end         = protocolObject.End;
     this.exitOptions = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ExitOptions, o => new ExitOptions(o).Freeze());
     this.start       = protocolObject.Start;
 }
Exemple #8
0
 internal ExitCodeMapping(Models.ExitCodeMapping protocolObject)
 {
     this.code        = protocolObject.Code;
     this.exitOptions = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ExitOptions, o => new ExitOptions(o).Freeze());
 }