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

Avoid async in autopagination when NET461 #2239

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Oct 29, 2020

Fixes #2223.

Uses a preprocessor directive so that ListRequestAutoPaging avoids trying to be async in NET461 (which breaks webforms), and uses something identical to the previous (sync) iteration: https://github.com/stripe/stripe-dotnet/blob/master/src/Stripe.net/Services/_base/Service.cs#L260

Thanks @ob-stripe for pairing with me on the implementation of this.

r? @ob-stripe
cc @remi-stripe

@richardm-stripe richardm-stripe changed the title Avoid async when NET461 Avoid async in autopagination when NET461 Oct 29, 2020
@richardm-stripe richardm-stripe merged commit d72a9a3 into master Oct 29, 2020
@richardm-stripe richardm-stripe deleted the richardm-support-webforms branch October 29, 2020 20:58
@mexner
Copy link

mexner commented Oct 29, 2020

Thanks @richardlawley @ob-stripe !

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.

ListAutoPaging requires async capabilities?
3 participants