IServiceCollection

The list of service registrations the dependency injection container is built from, reached in ASP.NET Core as builder.Services.

In more detail

Once the host is built, the collection becomes read-only and is turned into a service provider. Every AddX extension method, such as AddOpenApi or AddDbContext, adds registrations to it and returns it so calls chain.

Related terms

Taught in

References