-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
Description
Each services.Add{SERVICE_NAME} extension method…
As far as I understand instead of {SERVICE_NAME} – {LIFETIME} should be used. Whereas this notation was used on Dependency injection overview page: https://docs.microsoft.com/en-us/dotnet/core/extensions/dependency-injection
Add{LIFETIME}<{SERVICE}, {IMPLEMENTATION}>()
Add{LIFETIME}<{IMPLEMENTATION}>()
TryAdd{LIFETIME}
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: a4eb702a-d75f-f780-aef1-2e858e14258f
- Version Independent ID: 9a183e07-d5fd-1de9-796d-3bc77f07e033
- Content: Use dependency injection in .NET
- Content Source: docs/core/extensions/dependency-injection-usage.md
- Product: dotnet-fundamentals
- GitHub Login: @IEvangelist
- Microsoft Alias: dapine
IEvangelist