Skip to content

Commit

Permalink
Add missing bits
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Jul 18, 2024
1 parent e4ea1ac commit 21cf3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/core/extensions/dependency-injection-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ The most commonly used APIs for adding services to the `ServiceCollection` are l
- `AddTransient<TService>`
- `AddScoped<TService>`

These methods are convenience methods that create a `ServiceDescriptor` instance and add it to the `ServiceCollection`. The `ServiceDescriptor` class is a simple class that describes a service with its service type, implementation, and lifetime.
These methods are convenience methods that create a `ServiceDescriptor` instance and add it to the `ServiceCollection`. The `ServiceDescriptor` is a simple class that describes a service with its service type, implementation type, and lifetime. It can also desribe implementation factories and instances.

For each of the services that you registered in the `ServiceCollection`, you could instead call the `Add` method with a `ServiceDescriptor` instance directly. Consider the following examples:

Expand Down

0 comments on commit 21cf3b8

Please sign in to comment.