internal PSTaskSchedulingError(Microsoft.Azure.Batch.TaskSchedulingError omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
 internal PSTaskSchedulingError(Microsoft.Azure.Batch.TaskSchedulingError omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
Example #3
0
 internal StartTaskInformation(Models.StartTaskInformation 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.StartTaskState, Common.StartTaskState>(protocolObject.State);
 }
Example #4
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 TaskExecutionInformation(Models.TaskExecutionInformation protocolObject)
 {
     this.endTime         = protocolObject.EndTime;
     this.exitCode        = protocolObject.ExitCode;
     this.lastRequeueTime = protocolObject.LastRequeueTime;
     this.lastRetryTime   = protocolObject.LastRetryTime;
     this.requeueCount    = protocolObject.RequeueCount;
     this.retryCount      = protocolObject.RetryCount;
     this.schedulingError = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.SchedulingError, o => new TaskSchedulingError(o).Freeze());
     this.startTime       = protocolObject.StartTime;
 }
Example #6
0
 internal SubtaskInformation(Models.SubtaskInformation protocolObject)
 {
     this.computeNodeInformation = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.NodeInfo, o => new ComputeNodeInformation(o).Freeze());
     this.endTime       = protocolObject.EndTime;
     this.exitCode      = protocolObject.ExitCode;
     this.id            = protocolObject.Id;
     this.previousState = UtilitiesInternal.MapNullableEnum <Models.TaskState, Common.TaskState>(protocolObject.PreviousState);
     this.previousStateTransitionTime = protocolObject.PreviousStateTransitionTime;
     this.schedulingError             = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.SchedulingError, o => new TaskSchedulingError(o).Freeze());
     this.startTime           = protocolObject.StartTime;
     this.state               = UtilitiesInternal.MapNullableEnum <Models.TaskState, Common.TaskState>(protocolObject.State);
     this.stateTransitionTime = protocolObject.StateTransitionTime;
 }