public static GetTaskId ( string TaskName ) : string | ||
TaskName | string | |
return | string |
public static int GetNumberOfTries(string TaskName) { string sid = TaskHelper.GetTaskId(TaskName); var id = Guid.Parse(sid); var taskInfo = ZennoPoster.GetTaskInfo(id); string execsettings = Regex.Match(taskInfo,@"(?<=<ExecutionSettings>).*?(?=</ExecutionSettings>)").Value; string ntries = Regex.Match(execsettings,@"(?<=<NumberOfTries>).*?(?=</NumberOfTries>)").Value; int res=0; Int32.TryParse(ntries,out res); return res; }
public static string GetStatus(string TaskName) { string sid = TaskHelper.GetTaskId(TaskName); var id = Guid.Parse(sid); var taskInfo = ZennoPoster.GetTaskInfo(id); string status = Regex.Match(taskInfo,@"(?<=<Status>).*?(?=</Status>)").Value; return status; //Perform - работает //Complite - завершен //Stop - остановлен //Schedule - запланирован //WaitPerform - компилится }