InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 1141–1152 of 3610 questions

C# & .NET DevelopmentAdvanced1 min read

What is a captive dependency?

A captive dependency occurs when a longer-lived service holds a shorter-lived service, such as a singleton capturing a scoped DbContext. This can