YUNOVA · C# · Module 13: Professional practice
Dependency injection in .NET
Dependency injection in .NET
Key points
- DI passes dependencies in through constructors instead of creating them.
- Services are registered as transient, scoped or singleton.
- The built-in container resolves registered services automatically.