Suggest an editImprove this articleRefine the answer for “What is the scope of a dependency?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**Scope** of a dependency is a rule that determines how long an object created by the container lives and when it gets recreated. **Key point:** Scope governs the lifetime of dependencies: a singleton lives for the whole application, a scoped instance lives within a request, and a transient one is created anew every time.Shown above the full answer for quick recall.Answer (EN)ImageThe scope of a dependency is a rule that determines **how long an object created by the dependency container lives** and **when it gets recreated**. Examples: - **Singleton** - created once for the entire lifetime of the application; everyone gets the same instance. - **Scoped** - lives within a single request or context (for example, an HTTP request in a web application). - **Transient** - created anew every time it is requested. In other words, scope governs the *lifetime* of dependencies and who "kills" them.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.