This function is used to get an list of TJob
Parameters
Used to call the function
- options - TJobGetOptions
Returns
Returns the following
public List<TJob> GetProjects(DateTime modified)
{
var dt = modified == DateTime.MinValue ? new DateTime(1899, 12, 30) : modified;
List<TJob> list = new List<TJob>();
bool doFetch = true;
do
{
var entries = client.GetJobsEx(new TJobGetOptions() { Modified = dt, MaxRecords = 400 });
list.AddRange(entries);
if (entries.Count() == 0)
{
doFetch = false;
}
else
{
dt = entries[entries.Length - 1].Modified.AddMilliseconds(1);
}
} while (doFetch);
return list;
}
Related articles
-
Page:
-
Page:
-
Page:
-
Page:
-
Page: