Ranganath Prasad

Ranganath Prasad

  • NA
  • 1.2k
  • 235.5k

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.

 

Thanks,

Ranganath

 


Answers (3)