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