Provide GrainCancellationToken in RequestContext
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 10.9k
- Forks
- 2.1k
- Avg merge
- 13h 56m
- Merged PRs (30d)
- 351
Description
The methods in grain are usually asynchronous and support cancellation. I have added the GrainCancellationToken parameter to many methods, which is quite cumbersome.
Can we provide a GrainCancellationToken in RequestContext to avoid defining the GrainCancellationToken parameter in many methods of grain
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by reading RequestContext and the existing GrainCancellationToken usage in grain methods, then determine the intended cancellation behavior and API impact. Done means the token is available through RequestContext without requiring repeated method parameters, with the behavior covered by appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100