Skip to content

Instantly share code, notes, and snippets.

@scattered-code
Last active January 6, 2020 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scattered-code/b262b19c81edb1dcae0c062ab5db225b to your computer and use it in GitHub Desktop.
Save scattered-code/b262b19c81edb1dcae0c062ab5db225b to your computer and use it in GitHub Desktop.
using (var session = documentStore.OpenAsyncSession())
{
await foreach (var entry in GetDocumentsFromDatabase2(session))
{
Console.WriteLine($"Processing entry '{entry.Id}'");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment