예제 #1
0
 public static bool IsFinish(this PipelineHistory pipelineHistory)
 {
     if (pipelineHistory.Status.IsIn(new string[] { "Succeeded", "Failed" }))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 public static bool IsRunning(this PipelineHistory pipelineHistory)
 {
     if ((pipelineHistory.StartTime != null) && (pipelineHistory.CompletionTime == null))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #3
0
 public static PipelineHistory SetMessage(this PipelineHistory pipelineHistory, string logs)
 {
     return(pipelineHistory.SetProperty <string>("Message", logs));
 }
예제 #4
0
 public static string GetMessage(this PipelineHistory pipelineHistory)
 {
     return(pipelineHistory.GetProperty <string>("Message"));
 }
예제 #5
0
 public static PipelineHistory SetLogs(this PipelineHistory pipelineHistory, string logs)
 {
     return(pipelineHistory.SetProperty <string>("Logs", logs));
 }
예제 #6
0
 public static string GetLogs(this PipelineHistory pipelineHistory)
 {
     return(pipelineHistory.GetProperty <string>("Logs"));
 }