Microsoft.Extensions.DependencyInjection Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides classes that support the implementation of the dependency injection software design pattern.
Classes
Structs
AsyncServiceScope |
A IServiceScope implementation that implements IAsyncDisposable. |
Interfaces
IHealthChecksBuilder |
A builder used to register health checks. |
IHttpClientBuilder |
A builder for configuring named HttpClient instances returned by IHttpClientFactory. |
IKeyedServiceProvider |
Retrieves services using a key and a type. |
IServiceCollection |
Specifies the contract for a collection of service descriptors. |
IServiceProviderFactory<TContainerBuilder> |
Provides an extension point for creating a container specific builder and an IServiceProvider. |
IServiceProviderIsKeyedService |
Provides methods to determine if the specified type with the specified service key is available from the IServiceProvider. |
IServiceProviderIsService |
Optional service used to determine if the specified type is available from the IServiceProvider. |
IServiceScope |
The Dispose() method ends the scope lifetime. Once Dispose is called, any scoped services that have been resolved from ServiceProvider will be disposed. |
IServiceScopeFactory |
A factory for creating instances of IServiceScope, which is used to create services within a scope. |
ISocketsHttpHandlerBuilder |
Configures SocketsHttpHandler for named HttpClient instances returned by IHttpClientFactory. |
ISupportRequiredService |
Optional contract used by GetRequiredService<T>(IServiceProvider) to resolve services if supported by IServiceProvider. |
Enums
ServiceLifetime |
Specifies the lifetime of a service in an IServiceCollection. |
Delegates
ObjectFactory |
The result of CreateFactory(Type, Type[]). |
ObjectFactory<T> |
Returns the result of CreateFactory<T>(Type[]), which is a delegate that specifies a factory method to call to instantiate an instance of type |
Feedback
Submit and view feedback for