<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0-rc.2.24473.5" />

Microsoft.Extensions.DependencyInjection

Namespace with 22 public types

Classes

 ActivatorUtilitiesConstructorAttribute Marks the constructor to be used when activating type using .
 FromKeyedServicesAttribute Indicates that the parameter should be bound using the keyed service registered with the specified key.
 ServiceCollection Default implementation of .
 ServiceDescriptor Describes a service with its service type, implementation, and lifetime.
 ServiceKeyAttribute Specifies the parameter to inject the key that was used for registration or resolution.

Structures

 AsyncServiceScope An implementation that implements .

Enumerations

 ServiceLifetime Specifies the lifetime of a service in an .

Static Classes

 ActivatorUtilities Helper code for the various activator services.
 KeyedService Provides static APIs for use with .
 ServiceCollectionServiceExtensions Extension methods for adding services to an .
 ServiceProviderKeyedServiceExtensions Extension methods for getting services from an .
 ServiceProviderServiceExtensions Extension methods for getting services from an .

Interfaces

 IKeyedServiceProvider Retrieves services using a key and a type.
 IServiceCollection Specifies the contract for a collection of service descriptors.
 IServiceProviderFactory`1 Provides an extension point for creating a container specific builder and an .
 IServiceProviderIsKeyedService Provides methods to determine if the specified type with the specified service key is available from the .
 IServiceProviderIsService Provides methods to determine if the specified type is available from the .
 IServiceScope Defines a disposable service scope.
 IServiceScopeFactory Creates instances of , which is used to create services within a scope.
 ISupportRequiredService Optional contract used by to resolve services if supported by .