/// <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 JobPreparationTaskExecutionInformation(Models.JobPreparationTaskExecutionInformation protocolObject)
 {
     this.endTime              = protocolObject.EndTime;
     this.exitCode             = protocolObject.ExitCode;
     this.lastRetryTime        = protocolObject.LastRetryTime;
     this.retryCount           = protocolObject.RetryCount;
     this.schedulingError      = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.SchedulingError, o => new TaskSchedulingError(o).Freeze());
     this.startTime            = protocolObject.StartTime;
     this.state                = UtilitiesInternal.MapEnum <Models.JobPreparationTaskState, Common.JobPreparationTaskState>(protocolObject.State);
     this.taskRootDirectory    = protocolObject.TaskRootDirectory;
     this.taskRootDirectoryUrl = protocolObject.TaskRootDirectoryUrl;
 }
 internal JobPreparationTaskExecutionInformation(Models.JobPreparationTaskExecutionInformation 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.LastRetryTime      = protocolObject.LastRetryTime;
     this.Result             = UtilitiesInternal.MapNullableEnum <Models.TaskExecutionResult, Common.TaskExecutionResult>(protocolObject.Result);
     this.RetryCount         = protocolObject.RetryCount;
     this.StartTime          = protocolObject.StartTime;
     this.State                = UtilitiesInternal.MapEnum <Models.JobPreparationTaskState, Common.JobPreparationTaskState>(protocolObject.State);
     this.TaskRootDirectory    = protocolObject.TaskRootDirectory;
     this.TaskRootDirectoryUrl = protocolObject.TaskRootDirectoryUrl;
 }