Microsoft.​Extensions.​Dependency​Injection Microsoft.​Extensions.​Dependency​Injection Namespace

Classes

ActivatorUtilities ActivatorUtilities Helper code for the various activator services.
AnalysisServiceCollectionExtensions AnalysisServiceCollectionExtensions Extension methods for setting up diagnostic services in an .
AntiforgeryServiceCollectionExtensions AntiforgeryServiceCollectionExtensions Extension methods for setting up antiforgery services in an .
ApplicationModelConventionExtensions ApplicationModelConventionExtensions Contains the extension methods for Conventions.
AuthenticationServiceCollectionExtensions AuthenticationServiceCollectionExtensions Extension methods for setting up authentication services in an .
AuthorizationServiceCollectionExtensions AuthorizationServiceCollectionExtensions Extension methods for setting up authorization services in an .
ClassWithInternalConstructor ClassWithInternalConstructor
CorsServiceCollectionExtensions CorsServiceCollectionExtensions Extension methods for setting up cross-origin resource sharing services in an .
DataProtectionServiceCollectionExtensions DataProtectionServiceCollectionExtensions Extension methods for setting up data protection services in an .
DataProtectionServices DataProtectionServices Provides access to default Data Protection instances.
DirectoryBrowserServiceExtensions DirectoryBrowserServiceExtensions Extension methods for adding directory browser services.
ElmServiceCollectionExtensions ElmServiceCollectionExtensions Extension methods for setting up Elm services in an .
EncoderServiceCollectionExtensions EncoderServiceCollectionExtensions Extension methods for setting up web encoding services in an .
IdentityEntityFrameworkBuilderExtensions IdentityEntityFrameworkBuilderExtensions
IdentityServiceCollectionExtensions IdentityServiceCollectionExtensions Contains extension methods to for configuring identity services.
LocalizationServiceCollectionExtensions LocalizationServiceCollectionExtensions Extension methods for setting up localization services in an .
LoggingServiceCollectionExtensions LoggingServiceCollectionExtensions Extension methods for setting up logging services in an .
MemoryCacheServiceCollectionExtensions MemoryCacheServiceCollectionExtensions Extension methods for setting up memory cache related services in an .
MvcApiExplorerMvcCoreBuilderExtensions MvcApiExplorerMvcCoreBuilderExtensions
MvcCoreMvcBuilderExtensions MvcCoreMvcBuilderExtensions Extensions for configuring MVC using an IMvcBuilder.
MvcCoreMvcCoreBuilderExtensions MvcCoreMvcCoreBuilderExtensions
MvcCoreServiceCollectionExtensions MvcCoreServiceCollectionExtensions Extension methods for setting up essential MVC services in an IServiceCollection.
MvcCorsMvcCoreBuilderExtensions MvcCorsMvcCoreBuilderExtensions
MvcDataAnnotationsMvcBuilderExtensions MvcDataAnnotationsMvcBuilderExtensions Extension methods for configuring MVC data annotations localization.
MvcDataAnnotationsMvcCoreBuilderExtensions MvcDataAnnotationsMvcCoreBuilderExtensions Extensions for configuring MVC data annotations using an IMvcBuilder.
MvcJsonMvcBuilderExtensions MvcJsonMvcBuilderExtensions Extensions methods for configuring MVC via an IMvcBuilder.
MvcJsonMvcCoreBuilderExtensions MvcJsonMvcCoreBuilderExtensions
MvcLocalizationMvcBuilderExtensions MvcLocalizationMvcBuilderExtensions Extension methods for configuring MVC view localization.
MvcLocalizationMvcCoreBuilderExtensions MvcLocalizationMvcCoreBuilderExtensions Extension methods for configuring MVC view localization.
MvcRazorMvcBuilderExtensions MvcRazorMvcBuilderExtensions Extensions methods for configuring MVC via an IMvcBuilder.
MvcRazorMvcCoreBuilderExtensions MvcRazorMvcCoreBuilderExtensions
MvcServiceCollectionExtensions MvcServiceCollectionExtensions Extension methods for setting up MVC services in an IServiceCollection.
MvcViewFeaturesMvcBuilderExtensions MvcViewFeaturesMvcBuilderExtensions Extensions methods for configuring MVC via an IMvcBuilder.
MvcViewFeaturesMvcCoreBuilderExtensions MvcViewFeaturesMvcCoreBuilderExtensions
MvcXmlMvcBuilderExtensions MvcXmlMvcBuilderExtensions Extension methods for adding XML formatters to MVC.
MvcXmlMvcCoreBuilderExtensions MvcXmlMvcCoreBuilderExtensions Extension methods for adding XML formatters to MVC.
OptionsConfigurationServiceCollectionExtensions OptionsConfigurationServiceCollectionExtensions Extension methods for adding configuration related options services to the DI container.
OptionsServiceCollectionExtensions OptionsServiceCollectionExtensions Extension methods for adding options services to the DI container.
RedisCacheServiceCollectionExtensions RedisCacheServiceCollectionExtensions Extension methods for setting up Redis distributed cache related services in an .
RoutingServiceCollectionExtensions RoutingServiceCollectionExtensions Contains extension methods to .
ServiceCollection ServiceCollection Default implementation of .
ServiceCollectionContainerBuilderExtensions ServiceCollectionContainerBuilderExtensions
ServiceCollectionServiceExtensions ServiceCollectionServiceExtensions Extension methods for adding services to an IServiceCollection.
ServiceDescriptor ServiceDescriptor
ServiceProviderServiceExtensions ServiceProviderServiceExtensions Extension methods for getting services from an .
SessionServiceCollectionExtensions SessionServiceCollectionExtensions Extension methods for adding session services to the DI container.
SqlServerCachingServicesExtensions SqlServerCachingServicesExtensions Extension methods for setting up Microsoft SQL Server distributed cache services in an .
TagHelperServicesExtensions TagHelperServicesExtensions Extension methods for configuring Razor cache tag helpers.
WebApiCompatShimMvcBuilderExtensions WebApiCompatShimMvcBuilderExtensions

Interfaces

IMvcBuilder IMvcBuilder An interface for configuring MVC services.
IMvcCoreBuilder IMvcCoreBuilder An interface for configuring essential MVC services.
IServiceCollection IServiceCollection Specifies the contract for a collection of service descriptors.
IServiceScope IServiceScope The method ends the scope lifetime. Once Dispose is called, any scoped services that have been resolved from ServiceProvider will be disposed.
IServiceScopeFactory IServiceScopeFactory
ISupportRequiredService ISupportRequiredService Optional contract used by GetRequiredService<T>(IServiceProvider) to resolve services if supported by .

Enums

ServiceLifetime ServiceLifetime Specifies the lifetime of a service in an IServiceCollection.

Delegates

ObjectFactory ObjectFactory The result of CreateFactory(Type, Type[]).