I'm trying to implement a central querying place that adds the selected locale to ALL queries going to the database.
I know I can use HttpContext or session to store and retrieve the user's currently selected locale.
But aside from adding string selectedLocale to hundreds of methods (parameter drilling), how can I access the currently selected locale in my data access for example? Or in my business?
How can I have something similar to React's Context API for C#?
Right now, I'm using Thread.SetData and Thread.GetData, but it has bugs.