Skip to content

Instantly share code, notes, and snippets.

@dontpaniclabsgists
Last active August 28, 2017 13:57
Show Gist options
  • Save dontpaniclabsgists/692af293a4c6e419ab7eb74185a49c49 to your computer and use it in GitHub Desktop.
Save dontpaniclabsgists/692af293a4c6e419ab7eb74185a49c49 to your computer and use it in GitHub Desktop.
Cosmos2_8
string token = null;
while (true)
{
var result = await accessor.Page(token, 2, customerId);
if (result.Notes.Length > 0)
{
var text = JsonConvert.SerializeObject(result.Notes);
token = result.Token;
Console.WriteLine("PAGE: " + text);
}
if (!result.HasMore)
{
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment