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

Add delegate to PageIterator to allow consumers to configure next page request #853

Merged

Conversation

pschaeflein
Copy link
Contributor

Fixes #852

Changes proposed in this pull request

  • Add a delegate to PageIterator the allows consumers to configure the next page request ( IBaseRequest ) before it is invoked.

zengin
zengin previously approved these changes Dec 2, 2020
Copy link
Contributor

@zengin zengin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@MIchaelMainer, I think PageIterator needs to go to Core library so that Beta library can also benefit from this.

I see an issue related to PageIterator in the core repo (microsoftgraph/msgraph-sdk-dotnet-core#54), do we have an existing task for the migration itself?

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the great contribution! One minor change on my side.

src/Microsoft.Graph/Tasks/PageIterator.cs Outdated Show resolved Hide resolved
baywet
baywet previously approved these changes Dec 2, 2020
@MIchaelMainer
Copy link
Contributor

@zengin Added microsoftgraph/msgraph-sdk-dotnet-core#179 to track moving this into core.

@MIchaelMainer MIchaelMainer merged commit a1352e3 into microsoftgraph:dev Dec 2, 2020
@pschaeflein pschaeflein deleted the pschaeflein/pageIterator branch December 2, 2020 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow consumer to configure the next page request when iterating collections
4 participants