mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-28 09:35:37 -05:00
added step status (#604)
This commit is contained in:
@@ -42,6 +42,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent.Contracts
|
||||
public string StepName { get; set; }
|
||||
public string Message { get; set; }
|
||||
public DateTime RunDate { get; set; }
|
||||
public int RunStatus { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -114,11 +114,13 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
string stepName = Convert.ToString(jobRow[UrnStepName], System.Globalization.CultureInfo.InvariantCulture);
|
||||
string message = Convert.ToString(jobRow[UrnMessage], System.Globalization.CultureInfo.InvariantCulture);
|
||||
DateTime runDate = Convert.ToDateTime(jobRow[UrnRunDate], System.Globalization.CultureInfo.InvariantCulture);
|
||||
int runStatus = Convert.ToInt32(jobRow[UrnRunStatus], System.Globalization.CultureInfo.InvariantCulture);
|
||||
AgentJobStep step = new AgentJobStep();
|
||||
step.StepId = stepId;
|
||||
step.StepName = stepName;
|
||||
step.Message = message;
|
||||
step.RunDate = runDate;
|
||||
step.RunStatus = runStatus;
|
||||
return step;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user