Exemplo n.º 1
0
 public bool CheckJobStatus(string jobId, DeploymentJobStatus statusToCheck)
 {
     lock (_lockObject)
     {
         if (!_deploymentJobsDictionary.TryGetValue(jobId, out DeploymentJob job))
         {
             throw new DeploymentJobNotFoundException(jobId);
         }
         return(job.Status == statusToCheck);
     }
 }
 private DeploymentJob(
     string id,
     string project,
     string service,
     DeploymentJobStatus status,
     string currentAction,
     string errorMessage,
     DateTime?createdTime,
     DateTime?endTime       = null,
     Process currentProcess = null)
 {
     Id             = id;
     Project        = project;
     Service        = service;
     Status         = status;
     CurrentAction  = currentAction;
     ErrorMessage   = errorMessage;
     CreatedTime    = createdTime;
     EndTime        = endTime;
     CurrentProcess = currentProcess;
 }