Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 internal PSExitOptions(Microsoft.Azure.Batch.ExitOptions omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
Ejemplo n.º 3
0
 internal PSExitOptions(Microsoft.Azure.Batch.ExitOptions omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 5
0
 public PSExitOptions()
 {
     this.omObject = new Microsoft.Azure.Batch.ExitOptions();
 }
Ejemplo n.º 6
0
 public PSExitOptions()
 {
     this.omObject = new Microsoft.Azure.Batch.ExitOptions();
 }
Ejemplo n.º 7
0
 internal ExitCodeRangeMapping(Models.ExitCodeRangeMapping protocolObject)
 {
     this.end         = protocolObject.End;
     this.exitOptions = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ExitOptions, o => new ExitOptions(o).Freeze());
     this.start       = protocolObject.Start;
 }
Ejemplo n.º 8
0
 internal ExitCodeMapping(Models.ExitCodeMapping protocolObject)
 {
     this.code        = protocolObject.Code;
     this.exitOptions = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ExitOptions, o => new ExitOptions(o).Freeze());
 }