A captive dependency occurs when a Singleton service depends on a Scoped service.
The Risk: The Scoped service will stay in memory as long as the Singleton lives, causing potential memory leaks or stale data.
Pro Tip: Always use IServiceScopeFactory inside singletons to resolve scoped services manually when needed.
