Ranganath Prasad

Ranganath Prasad

  • 1.1k
  • 1.2k
  • 28k

Practical use of Transient Scope ( Dependency Injection ) in a Web Api

Jan 6 2022 5:55 AM

So, i was just wondering if anyone has come across a use-case where a Transient objects are required instead of a Scoped object in Web API?

I just spent some time looking for an answer in stack overflow and this is what i got "Transient would be used when the component cannot be shared. A non-thread-safe database access object would be one example". But, as i said i was looking for a real use-case that you have worked on.





Answers (3)