Microsoft.Extensions.DependencyInjection Namespace

Classes

ActivatorUtilities

Helper code for the various activator services.

AnalysisServiceCollectionExtensions

Extension methods for setting up diagnostic services in an IServiceCollection.

AntiforgeryServiceCollectionExtensions

Extension methods for setting up antiforgery services in an IServiceCollection.

ApplicationModelConventionExtensions

Contains the extension methods for Conventions.

AuthenticationCoreServiceCollectionExtensions

Extension methods for setting up authentication services in an IServiceCollection.

AuthenticationServiceCollectionExtensions

Extension methods for setting up authentication services in an IServiceCollection.

AuthorizationServiceCollectionExtensions

Extension methods for setting up authorization services in an IServiceCollection.

ClassWithInternalConstructor
CookieExtensions
CorsServiceCollectionExtensions

Extension methods for setting up cross-origin resource sharing services in an IServiceCollection.

DataProtectionServiceCollectionExtensions

Extension methods for setting up data protection services in an IServiceCollection.

DataProtectionServices

Provides access to default Data Protection ServiceDescriptor instances.

DefaultServiceProviderFactory
DirectoryBrowserServiceExtensions

Extension methods for adding directory browser services.

ElmServiceCollectionExtensions

Extension methods for setting up Elm services in an IServiceCollection.

EncoderServiceCollectionExtensions

Extension methods for setting up web encoding services in an IServiceCollection.

FacebookAuthenticationOptionsExtensions
GoogleExtensions
IdentityEntityFrameworkBuilderExtensions

Contains extension methods to IdentityBuilder for adding entity framework stores.

IdentityServiceCollectionExtensions

Contains extension methods to IServiceCollection for configuring identity services.

JwtBearerExtensions
LocalizationServiceCollectionExtensions

Extension methods for setting up localization services in an IServiceCollection.

LoggingServiceCollectionExtensions

Extension methods for setting up logging services in an IServiceCollection.

MemoryCacheServiceCollectionExtensions

Extension methods for setting up memory cache related services in an IServiceCollection.

MicrosoftAccountExtensions
MvcApiExplorerMvcCoreBuilderExtensions
MvcCoreMvcBuilderExtensions

Extensions for configuring MVC using an IMvcBuilder.

MvcCoreMvcCoreBuilderExtensions
MvcCoreServiceCollectionExtensions

Extension methods for setting up essential MVC services in an IServiceCollection.

MvcCorsMvcCoreBuilderExtensions
MvcDataAnnotationsMvcBuilderExtensions

Extension methods for configuring MVC data annotations localization.

MvcDataAnnotationsMvcCoreBuilderExtensions

Extensions for configuring MVC data annotations using an IMvcBuilder.

MvcJsonMvcBuilderExtensions

Extensions methods for configuring MVC via an IMvcBuilder.

MvcJsonMvcCoreBuilderExtensions
MvcLocalizationMvcBuilderExtensions

Extension methods for configuring MVC view localization.

MvcLocalizationMvcCoreBuilderExtensions

Extension methods for configuring MVC view localization.

MvcRazorMvcBuilderExtensions

Extensions methods for configuring MVC via an IMvcBuilder.

MvcRazorMvcCoreBuilderExtensions
MvcRazorPagesMvcBuilderExtensions

Extensions methods for configuring Razor Pages via an IMvcBuilder.

MvcRazorPagesMvcCoreBuilderExtensions
MvcServiceCollectionExtensions

Extension methods for setting up MVC services in an IServiceCollection.

MvcViewFeaturesMvcBuilderExtensions

Extensions methods for configuring MVC via an IMvcBuilder.

MvcViewFeaturesMvcCoreBuilderExtensions
MvcXmlMvcBuilderExtensions

Extension methods for adding XML formatters to MVC.

MvcXmlMvcCoreBuilderExtensions

Extension methods for adding XML formatters to MVC.

NodeServicesServiceCollectionExtensions

Extension methods for setting up NodeServices in an IServiceCollection.

OAuthExtensions
OAuthPostConfigureOptions<TOptions,THandler>

Used to setup defaults for the OAuthOptions.

OpenIdConnectExtensions
OptionsConfigurationServiceCollectionExtensions

Extension methods for adding configuration related options services to the DI container.

OptionsServiceCollectionExtensions

Extension methods for adding options services to the DI container.

PageConventionCollectionExtensions

Extensions for PageConventionCollection.

PolicyServiceCollectionExtensions

Extension methods for setting up authorization services in an IServiceCollection.

PrerenderingServiceCollectionExtensions

Extension methods for setting up prerendering features in an IServiceCollection.

RedisCacheServiceCollectionExtensions

Extension methods for setting up Redis distributed cache related services in an IServiceCollection.

ResponseCachingServicesExtensions

Extension methods for the ResponseCaching middleware.

RoutingServiceCollectionExtensions

Contains extension methods to IServiceCollection.

ServiceCollection

Default implementation of IServiceCollection.

ServiceCollectionContainerBuilderExtensions
ServiceCollectionServiceExtensions

Extension methods for adding services to an IServiceCollection.

ServiceDescriptor
ServiceProvider

The default IServiceProvider.

ServiceProviderOptions

Options for configuring various behaviors of the default IServiceProvider implementation.

ServiceProviderServiceExtensions

Extension methods for getting services from an IServiceProvider.

SessionServiceCollectionExtensions

Extension methods for adding session services to the DI container.

SqlServerCachingServicesExtensions

Extension methods for setting up Microsoft SQL Server distributed cache services in an IServiceCollection.

TagHelperServicesExtensions

Extension methods for configuring Razor cache tag helpers.

TwitterExtensions
WebApiCompatShimMvcBuilderExtensions

Interfaces

IMvcBuilder

An interface for configuring MVC services.

IMvcCoreBuilder

An interface for configuring essential MVC services.

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.

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
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[]).