Beispiel #1
0
 internal JobSchedulingError(Models.JobSchedulingError protocolObject)
 {
     this.Category = UtilitiesInternal.MapEnum <Models.ErrorCategory, Common.ErrorCategory>(protocolObject.Category);
     this.Code     = protocolObject.Code;
     this.Details  = NameValuePair.ConvertFromProtocolCollectionReadOnly(protocolObject.Details);
     this.Message  = protocolObject.Message;
 }
 /// <summary>
 /// Initializes a new instance of the JobExecutionInformation class.
 /// </summary>
 /// <param name="startTime">The start time of the job.</param>
 /// <param name="endTime">The completion time of the job.</param>
 /// <param name="poolId">The id of the pool to which this job is
 /// assigned.</param>
 /// <param name="schedulingError">Details of any error encountered by
 /// the service in starting the job.</param>
 /// <param name="terminateReason">A string describing the reason the
 /// job ended.</param>
 public JobExecutionInformation(System.DateTime startTime, System.DateTime?endTime = default(System.DateTime?), string poolId = default(string), JobSchedulingError schedulingError = default(JobSchedulingError), string terminateReason = default(string))
 {
     StartTime       = startTime;
     EndTime         = endTime;
     PoolId          = poolId;
     SchedulingError = schedulingError;
     TerminateReason = terminateReason;
 }