Question about scoped dependencies in .net core
The docs say that scoped dependencies get new instances for each request that arrives.
I added a scoped dependency to the container. Its constructor only gets called for the first time the dependency is resolved.
I was expecting to see more constructor calls for the next requests that arrived and that required a new instance of my dependency.
What I am missing?
0 comments:
Post a Comment