scope validation

A container check that fails when a singleton depends on a scoped service, a bug called a captive dependency.

In more detail

It is on by default in the Development environment. Without it, the scoped object would outlive its request and leak state across users.

Related terms

Taught in

References