object graph
A set of objects connected by references, such as a service, the repository it uses and the database context the repository uses.
In more detail
Creating an object may require creating each of its dependencies first, and theirs in turn. The container builds the whole graph by resolving each constructor parameter in turn.
Related terms
- dependency injection — Giving an object the collaborators it needs from outside, usually through its constructor, instead of letting it create or look them up itself.
- service provider — The built dependency injection container, which creates and hands out services according to their registrations.
Taught in
- The Dependency Injection Container: Scopes and Lifetimes — Modern .NET Core, C# & Enterprise Microservices