Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Not Enumerate Twice Over a ResourceSet That Has Pages #574

Open
joelweiss opened this issue Aug 6, 2021 · 1 comment
Open

Can Not Enumerate Twice Over a ResourceSet That Has Pages #574

joelweiss opened this issue Aug 6, 2021 · 1 comment
Labels
status: help wanted requesting help from the community type: bug bug in the library

Comments

@joelweiss
Copy link

Issue Summary

Once you enumerate over a ResourceSet<T> that has pages, on subsequent enumerations you only get back the last page

Code Snippet

var messageResource = await MessageResource.ReadAsync(readMessageOptions, client).ConfigureAwait(false);
Console.WriteLine($"Found {messageResource.Count()} Messages");
Console.WriteLine($"Found {messageResource.Count()} Messages");

Outputs

Found 236 Messages
Found 36 Messages

Problem code is in ResourceSet.cs where FetchNextPage() overrides the prior page's _iterator and doesn't keep track of it.

@shwetha-manvinkurke
Copy link
Contributor

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

@shwetha-manvinkurke shwetha-manvinkurke added status: help wanted requesting help from the community type: bug bug in the library labels Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted requesting help from the community type: bug bug in the library
Projects
None yet
Development

No branches or pull requests

2 participants