Microsoft.Extensions.DependencyInjection Namespace¶
-
namespace
Microsoft.Extensions.DependencyInjection¶ Interfaces
- interface
IMvcBuilder - An interface for configuring MVC services.
- interface
IMvcCoreBuilder - An interface for configuring essential MVC services.
- interface
IServiceCollection - Specifies the contract for a collection of service descriptors.
- interface
IServiceScope - The
System.IDisposable.Disposemethod ends the scope lifetime. Once Dispose is called, any scoped services that have been resolved fromMicrosoft.Extensions.DependencyInjection.IServiceScope.ServiceProviderwill be disposed. - interface
IServiceScopeFactory - interface
ISupportRequiredService - Optional contract used by
Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService``1(System.IServiceProvider)to resolve services if supported bySystem.IServiceProvider.
Enumerations
- enum
ServiceLifetime - Specifies the lifetime of a service in an
Microsoft.Extensions.DependencyInjection.IServiceCollection.
Classes
- class
ActivatorUtilities - Helper code for the various activator services.
- class
AnalysisServiceCollectionExtensions - Extension methods for setting up diagnostic services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
AntiforgeryServiceCollectionExtensions - Extension methods for setting up antiforgery services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
ApplicationModelConventionExtensions - Contains the extension methods for
Microsoft.AspNetCore.Mvc.MvcOptions.Conventions. - class
AuthenticationServiceCollectionExtensions - Extension methods for setting up authentication services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
AuthorizationServiceCollectionExtensions - Extension methods for setting up authorization services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
ClassWithInternalConstructor - class
CorsServiceCollectionExtensions - Extension methods for setting up cross-origin resource sharing services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
DataProtectionServiceCollectionExtensions - Extension methods for setting up data protection services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
DataProtectionServices - Provides access to default Data Protection
Microsoft.Extensions.DependencyInjection.ServiceDescriptorinstances. - class
DirectoryBrowserServiceExtensions - Extension methods for adding directory browser services.
- class
ElmServiceCollectionExtensions - Extension methods for setting up Elm services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
EncoderServiceCollectionExtensions - Extension methods for setting up web encoding services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
IdentityEntityFrameworkBuilderExtensions - class
IdentityServiceCollectionExtensions - Contains extension methods to
Microsoft.Extensions.DependencyInjection.IServiceCollectionfor configuring identity services. - class
LocalizationServiceCollectionExtensions - Extension methods for setting up localization services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
LoggingServiceCollectionExtensions - Extension methods for setting up logging services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
MemoryCacheServiceCollectionExtensions - Extension methods for setting up memory cache related services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
MvcApiExplorerMvcCoreBuilderExtensions - class
MvcCoreMvcBuilderExtensions - Extensions for configuring MVC using an
Microsoft.Extensions.DependencyInjection.IMvcBuilder. - class
MvcCoreMvcCoreBuilderExtensions - class
MvcCoreServiceCollectionExtensions - Extension methods for setting up essential MVC services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
MvcCorsMvcCoreBuilderExtensions - class
MvcDataAnnotationsMvcBuilderExtensions - Extension methods for configuring MVC data annotations localization.
- class
MvcDataAnnotationsMvcCoreBuilderExtensions - Extensions for configuring MVC data annotations using an
Microsoft.Extensions.DependencyInjection.IMvcBuilder. - class
MvcJsonMvcBuilderExtensions - Extensions methods for configuring MVC via an
Microsoft.Extensions.DependencyInjection.IMvcBuilder. - class
MvcJsonMvcCoreBuilderExtensions - class
MvcLocalizationMvcBuilderExtensions - Extension methods for configuring MVC view localization.
- class
MvcLocalizationMvcCoreBuilderExtensions - Extension methods for configuring MVC view localization.
- class
MvcRazorMvcBuilderExtensions - Extensions methods for configuring MVC via an
Microsoft.Extensions.DependencyInjection.IMvcBuilder. - class
MvcRazorMvcCoreBuilderExtensions - class
MvcServiceCollectionExtensions - Extension methods for setting up MVC services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
MvcViewFeaturesMvcBuilderExtensions - Extensions methods for configuring MVC via an
Microsoft.Extensions.DependencyInjection.IMvcBuilder. - class
MvcViewFeaturesMvcCoreBuilderExtensions - class
MvcXmlMvcBuilderExtensions - Extension methods for adding XML formatters to MVC.
- class
MvcXmlMvcCoreBuilderExtensions - Extension methods for adding XML formatters to MVC.
- class
OptionsConfigurationServiceCollectionExtensions - Extension methods for adding configuration related options services to the DI container.
- class
OptionsServiceCollectionExtensions - Extension methods for adding options services to the DI container.
- class
RedisCacheServiceCollectionExtensions - Extension methods for setting up Redis distributed cache related services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
RoutingServiceCollectionExtensions - Contains extension methods to
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
ServiceCollection - Default implementation of
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
ServiceCollectionContainerBuilderExtensions - class
ServiceCollectionServiceExtensions - Extension methods for adding services to an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
ServiceDescriptor - class
ServiceProviderServiceExtensions - Extension methods for getting services from an
System.IServiceProvider. - class
SessionServiceCollectionExtensions - Extension methods for adding session services to the DI container.
- class
SqlServerCachingServicesExtensions - Extension methods for setting up Microsoft SQL Server distributed cache services in an
Microsoft.Extensions.DependencyInjection.IServiceCollection. - class
TagHelperServicesExtensions - Extension methods for configuring Razor cache tag helpers.
- class
WebApiCompatShimMvcBuilderExtensions
Delegates
- delegate
ObjectFactory - The result of
Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(System.Type,System.Type[]).
- interface