Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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 22:17pm

1 solution

 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900