/// <summary>
 /// Initializes a new instance of the
 /// JobPreparationAndReleaseTaskExecutionInformation class.
 /// </summary>
 /// <param name="poolId">The id of the pool containing the compute
 /// node to which this entry refers.</param>
 /// <param name="nodeId">The id of the compute node to which this
 /// entry refers.</param>
 /// <param name="nodeUrl">The URL of the compute node to which this
 /// entry refers.</param>
 /// <param name="jobPreparationTaskExecutionInfo">Information about
 /// the execution status of the Job Preparation task on this compute
 /// node.</param>
 /// <param name="jobReleaseTaskExecutionInfo">Information about the
 /// execution status of the Job Release task on this compute
 /// node.</param>
 public JobPreparationAndReleaseTaskExecutionInformation(string poolId = default(string), string nodeId = default(string), string nodeUrl = default(string), JobPreparationTaskExecutionInformation jobPreparationTaskExecutionInfo = default(JobPreparationTaskExecutionInformation), JobReleaseTaskExecutionInformation jobReleaseTaskExecutionInfo = default(JobReleaseTaskExecutionInformation))
 {
     PoolId  = poolId;
     NodeId  = nodeId;
     NodeUrl = nodeUrl;
     JobPreparationTaskExecutionInfo = jobPreparationTaskExecutionInfo;
     JobReleaseTaskExecutionInfo     = jobReleaseTaskExecutionInfo;
 }
コード例 #2
0
 internal JobReleaseTaskExecutionInformation(Models.JobReleaseTaskExecutionInformation protocolObject)
 {
     this.endTime              = protocolObject.EndTime;
     this.exitCode             = protocolObject.ExitCode;
     this.schedulingError      = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.SchedulingError, o => new TaskSchedulingError(o).Freeze());
     this.startTime            = protocolObject.StartTime;
     this.state                = UtilitiesInternal.MapEnum <Models.JobReleaseTaskState, Common.JobReleaseTaskState>(protocolObject.State);
     this.taskRootDirectory    = protocolObject.TaskRootDirectory;
     this.taskRootDirectoryUrl = protocolObject.TaskRootDirectoryUrl;
 }
 internal JobReleaseTaskExecutionInformation(Models.JobReleaseTaskExecutionInformation protocolObject)
 {
     this.ContainerInformation = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ContainerInfo, o => new TaskContainerExecutionInformation(o).Freeze());
     this.EndTime            = protocolObject.EndTime;
     this.ExitCode           = protocolObject.ExitCode;
     this.FailureInformation = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.FailureInfo, o => new TaskFailureInformation(o).Freeze());
     this.Result             = UtilitiesInternal.MapNullableEnum <Models.TaskExecutionResult, Common.TaskExecutionResult>(protocolObject.Result);
     this.StartTime          = protocolObject.StartTime;
     this.State                = UtilitiesInternal.MapEnum <Models.JobReleaseTaskState, Common.JobReleaseTaskState>(protocolObject.State);
     this.TaskRootDirectory    = protocolObject.TaskRootDirectory;
     this.TaskRootDirectoryUrl = protocolObject.TaskRootDirectoryUrl;
 }