コード例 #1
0
 internal PSBatchError(Microsoft.Azure.Batch.BatchError omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
コード例 #2
0
 internal AddTaskResult(Models.TaskAddResult protocolObject)
 {
     this.error        = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.Error, o => new BatchError(o).Freeze());
     this.eTag         = protocolObject.ETag;
     this.lastModified = protocolObject.LastModified;
     this.location     = protocolObject.Location;
     this.status       = UtilitiesInternal.MapEnum <Models.TaskAddStatus, Common.AddTaskStatus>(protocolObject.Status);
     this.taskId       = protocolObject.TaskId;
 }