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

Pass cancellation token in PaginatedListAsync #1296

Open
sayeed1999 opened this issue Jan 17, 2025 · 2 comments
Open

Pass cancellation token in PaginatedListAsync #1296

sayeed1999 opened this issue Jan 17, 2025 · 2 comments

Comments

@sayeed1999
Copy link

Describe the bug
Cancellation token in not passed in PaginatedListAsync

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'CleanArchitecture.Application.Common.Mappings'
  2. Add Cancellation token in parameters
  3. Find all the references to this extension method
  4. Pass cancellation token as the last argument

Expected behavior
Any method that is using PaginatedListAsync should be able to pass Cancellation Token

Screenshots
N/A

Additional context
N/A

@sayeed1999
Copy link
Author

I am doing it in my forked repo.

@clarin-ebtio800090
Copy link

Hello, we tried to solve the issue.

This is what we did:

Added cancellation token parameter to PaginatedListAsync extension method in MappingExtensions.cs, updated PaginatedList.CreateAsync method in PaginatedList.cs to accept cancellation token, and updated the usage in GetTodoItemsWithPagination.cs.

You can review changes in this commit: clarin-ebtio800090@f981086.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

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

No branches or pull requests

2 participants