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

Ranganath PrasadPosted Jan 8, 2022, 4:05 PM
Hi Rijwan,
Thanks for your answer. But, as i mentioned before, i am not looking for details on how it works - i am pretty much aware of the concept. My question was that did any one encounter a scenario in any Web Api app they have built where they had to go with Transient instead of Scoped? If yes, what was that scenario, what was the problem Scoped object created and how Transient object fixed it.
Thanks,
Ranganath Prasad
Rijwan AnsariPosted Jan 8, 2022, 3:55 PM
Rijwan AnsariPosted Jan 8, 2022, 3:54 PM