コード例 #1
0
 internal PipelineDetailsModel(Pipeline pipeline)
 {
     PipelineName = pipeline.PipelineName;
     Status = pipeline.Status;
     StageDetails = new StageDetailsModel[pipeline.Stages.Count];
     for (int i = 0; i < StageDetails.Length; ++i)
     {
         StageDetails[i] = new StageDetailsModel
             {
                 Status = pipeline.Stages[i].Status,
                 StageName = pipeline.Stages[i].Name
             };
     }
     LastUpdatedTime = "Last Updated: " + DateTime.Now.ToString("HH:mm:ss tt");
 }
コード例 #2
0
 internal PipelineDetailsModel(Pipeline pipeline)
 {
     PipelineName = pipeline.PipelineName;
     Status       = pipeline.Status;
     StageDetails = new StageDetailsModel[pipeline.Stages.Count];
     for (int i = 0; i < StageDetails.Length; ++i)
     {
         StageDetails[i] = new StageDetailsModel
         {
             Status    = pipeline.Stages[i].Status,
             StageName = pipeline.Stages[i].Name
         };
     }
     LastUpdatedTime = "Last Updated: " + DateTime.Now.ToString("HH:mm:ss tt");
 }
コード例 #3
0
 private bool Equals(StageDetailsModel other)
 {
     return string.Equals(StageName, other.StageName);
 }
コード例 #4
0
 private bool Equals(StageDetailsModel other)
 {
     return(string.Equals(StageName, other.StageName));
 }