Skip to content

Commit

Permalink
Correct xref
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Jul 18, 2024
1 parent 0500adc commit 02c069a
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 @@ -33,7 +33,7 @@ Dependency injection is a design pattern that allows you to remove hard-coded de
The abstractions for DI in .NET are defined in the [Microsoft.Extensions.DependencyInjection.Abstractions](https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection.Abstractions) NuGet package:

- <xref:Microsoft.Extensions.DependencyInjection.IServiceCollection>: Defines a contract for a collection of service descriptors.
- <xref:Microsoft.Extensions.DependencyInjection.IServiceProvider>: Defines a mechanism for retrieving a service object.
- <xref:System.IServiceProvider>: Defines a mechanism for retrieving a service object.
- <xref:Microsoft.Extensions.DependencyInjection.ServiceDescriptor>: Describes a service with its service type, implementation, and lifetime.

In .NET, DI is managed by adding services and configuring them in an `IServiceCollection`. After services are registered, as `IServiceProvider` instance is built by calling the <xref:Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider%2A> method. The `IServiceProvider` acts as a container of all the registered services, and it's used to resolve services.
Expand Down

0 comments on commit 02c069a

Please sign in to comment.