We have created web api using .net core . but i am not sure when to use addscoped vs transient while setting up DI in startup class.
Can any one explain me the scenarios for using addscoped vs transient??
Thank you in advance..
What I have tried:
tried searching for the definition and usage of same but didn't get the clear understanding on the usage.