|
|
|
@ -36,7 +36,7 @@ protected override async Task<CollectorCursor> Fetch(CollectorHttpClient client,
|
|
|
|
|
JToken context = null;
|
|
|
|
|
root.TryGetValue("@context", out context);
|
|
|
|
|
|
|
|
|
|
IEnumerable<JToken> rootItems = root["item"].OrderBy(item => item["commitTimestamp"].ToObject<DateTime>());
|
|
|
|
|
IEnumerable<JToken> rootItems = root["items"].OrderBy(item => item["commitTimestamp"].ToObject<DateTime>());
|
|
|
|
|
|
|
|
|
|
foreach (JObject rootItem in rootItems)
|
|
|
|
|
{
|
|
|
|
@ -47,7 +47,7 @@ protected override async Task<CollectorCursor> Fetch(CollectorHttpClient client,
|
|
|
|
|
Uri pageUri = rootItem["url"].ToObject<Uri>();
|
|
|
|
|
JObject page = await client.GetJObjectAsync(pageUri);
|
|
|
|
|
|
|
|
|
|
IEnumerable<JToken> pageItems = page["item"].OrderBy(item => item["commitTimestamp"].ToObject<DateTime>());
|
|
|
|
|
IEnumerable<JToken> pageItems = page["items"].OrderBy(item => item["commitTimestamp"].ToObject<DateTime>());
|
|
|
|
|
|
|
|
|
|
foreach (JObject pageItem in pageItems)
|
|
|
|
|
{
|
|
|
|
|