For several years ive been struggling those parameters passing everywhere, so i "invented" those scoped states. After that ive been thinking how to play with those states. What i came with was "State providers" like a implementation for extracting value fron the route itself, or for lazy execution to avoid those complexity - it all for the ability ti inject state directly into its consumer without passing parameters. After a few moths i fell defeated, and how i found your video and thats a magic kick to start anew. Thanks a lot, this things are the things i think about all the time
They keys are static or in other words defined at startup when registering the service. You would need to restart your application for a each new tenant (to stay with the example from the video)
For several years ive been struggling those parameters passing everywhere, so i "invented" those scoped states. After that ive been thinking how to play with those states. What i came with was "State providers" like a implementation for extracting value fron the route itself, or for lazy execution to avoid those complexity - it all for the ability ti inject state directly into its consumer without passing parameters. After a few moths i fell defeated, and how i found your video and thats a magic kick to start anew. Thanks a lot, this things are the things i think about all the time
upd: seems like it doesnt help me, sadly. doesnt work in the case i pass state to a class that is called inside some other class
Can you give a more detailed example?
Great video! I realized that I did not understand scoped services and it`s proper usage fully before I saw your explanation.
why did you use singleton for WithTenantScope?
My boi at it again
Pretty sure this guy was born knowing all these things already
Amazing, as usual.
Wouldn't it be easier to use keyed service for tenant db?
Nope keyed services solve a different problem
They keys are static or in other words defined at startup when registering the service. You would need to restart your application for a each new tenant (to stay with the example from the video)
What IDE do you use to work with C#? Today mac os users can't installl offically Visual Studio
He has the visual studio code from Microsoft private repos, he compiles and uses his own custom VS2024 edition.
Bro can grow a beard wow
This is a bit all over the place. Hard to follow