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

Page<T> is a struct, this seems to give an error when using with (mass transit) mediator pattern as the return type needs to be a reference type #7153

Open
michelbieleveld opened this issue Jun 6, 2024 · 0 comments
Labels
🐛 bug Something isn't working 🌶️ hot chocolate

Comments

@michelbieleveld
Copy link

Product

Hot Chocolate

Version

14.0.0-140

Link to minimal reproduction

http://na

Steps to reproduce

Trying to implement the paging according to the YouTube video Deep dive into paging in layered architectures with Hot Chocolate 14 . In addition to the shown service I would like to use the mediatr pattern in the query handler. As shown in the screenshot returning Page is not working as it needs a reference type to return. Not sure if it is mass transit specific , but if not perhaps the page structure should be changed to a record.

Screenshot 2024-06-05 at 21 55 11

What is expected?

Being able to return Page as a response in mass transit using respondasync.

What is actually happening?

Not possible as the struct Page is not a reference type

Relevant log output

See screenshot

Additional context

No response

@michelbieleveld michelbieleveld added the 🐛 bug Something isn't working label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🌶️ hot chocolate
Projects
None yet
Development

No branches or pull requests

1 participant