Explain the difference between Scoped, Singleton, and Transient lifetimes.

Entry ASP.NET Web API

Answer

Singleton: One instance for entire app.

Scoped: One instance per request.

Transient: New instance per usage.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice