service provider

The built dependency injection container, which creates and hands out services according to their registrations.

In more detail

GetRequiredService<T>() throws immediately if nothing is registered, so wiring mistakes fail early instead of returning null. In a web app the host builds the provider; you rarely call it yourself.

Related terms

Taught in

References