Skip to content

Is RequestLocalizationMiddleware thread-safe? #49012

Closed Answered by davidfowl
AndreuCodina asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer yes, it’s thread safe. If it wasn’t it would be unusable.

Current culture is an async local. It’s a local that implicitly flows throughout async calls (conceptually like a thread local but for async code)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AndreuCodina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants