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

RequestContext cannot be accessed in MayInterleave predicates #9163

Open
temcewen opened this issue Oct 7, 2024 · 0 comments
Open

RequestContext cannot be accessed in MayInterleave predicates #9163

temcewen opened this issue Oct 7, 2024 · 0 comments

Comments

@temcewen
Copy link

temcewen commented Oct 7, 2024

To allow grains to determine on invocation if they should allow interleaving, it's not currently possible to use RequestContext properties in the MayInterleave attribute. This is a little restrictive as the other ways of achieving interleaving calls require setting attributes on the grains or interface methods.

Using the RequestContext in the MayInterleave predicate allows grains to determine based on RequestContext properties set upstream (which weren't explicitly propagated by arguments) whether the method should interleave or not.

Minimal reproducible example:
https://github.com/temcewen/OrleansMayInterleaveBug

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

1 participant