Skip to content

Fix the request scope being immediately disposed without awaiting the handler chain#834

Merged
Kaliumhexacyanoferrat merged 1 commit intoKaliumhexacyanoferrat:mainfrom
Bootykit:patch-1
May 2, 2026
Merged

Fix the request scope being immediately disposed without awaiting the handler chain#834
Kaliumhexacyanoferrat merged 1 commit intoKaliumhexacyanoferrat:mainfrom
Bootykit:patch-1

Conversation

@Bootykit
Copy link
Copy Markdown
Contributor

@Bootykit Bootykit commented May 1, 2026

Context.HandleAsync must be awaited to ensure code is executed fully with a returned response before scope is disposed.

Must be awaited to ensure code is executed fully before scope is disposed. Initially caused Task Cancellation exception.
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added the bug Something isn't working label May 2, 2026
@Kaliumhexacyanoferrat
Copy link
Copy Markdown
Owner

Oh, that's bad. Thanks for the fix.

@Kaliumhexacyanoferrat Kaliumhexacyanoferrat changed the title Update InjectionConcern.cs Fix the request scope being immediately disposed without awaiting the handler chain May 2, 2026
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat merged commit 769740b into Kaliumhexacyanoferrat:main May 2, 2026
8 checks passed
Kaliumhexacyanoferrat pushed a commit that referenced this pull request May 2, 2026
… handler chain (#834)

Must be awaited to ensure code is executed fully before scope is disposed. Initially caused Task Cancellation exception.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants