Click here to Skip to main content
14,392,028 members
Rate this:
Please Sign up or sign in to vote.
See more:
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.
Posted
Updated 11-Nov-19 23:17pm

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100