Wednesday, February 28, 2018

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?

Question about scoped dependencies in .net core Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team