Microsoft.Extensions.DependencyInjection Namespace

Classes

ActivatorUtilities

Helper code for the various activator services.

ActivatorUtilitiesConstructorAttribute

Marks the constructor to be used when activating type using ActivatorUtilities.

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
ConnectionsDependencyInjectionExtensions

Extension methods for IServiceCollection.

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

Default implementation of IServiceProviderFactory<TContainerBuilder>.

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
HttpClientBuilderExtensions

Extension methods for configuring an IHttpClientBuilder

HttpClientFactoryServiceCollectionExtensions

Extensions methods to configure an IServiceCollection for IHttpClientFactory.

HttpServiceCollectionExtensions

Extension methods for configuring HttpContext services.

IdentityEntityFrameworkBuilderExtensions

Contains extension methods to IdentityBuilder for adding entity framework stores.

IdentityServiceCollectionExtensions

Contains extension methods to IServiceCollection for configuring identity services.

IdentityServiceCollectionUIExtensions
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
MsgPackProtocolDependencyInjectionExtensions
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 and data annotations localization services.

MvcLocalizationMvcCoreBuilderExtensions

Extension methods for configuring MVC view and data annotations localization services.

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
OptionsBuilderConfigurationExtensions

Extension methods for adding configuration related options services to the DI container via OptionsBuilder<TOptions>.

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.

RedisDependencyInjectionExtensions

Extension methods for configuring Redis-based scale-out for a SignalR Server in an ISignalRServerBuilder.

ResponseCachingServicesExtensions

Extension methods for the ResponseCaching middleware.

RoutingServiceCollectionExtensions

Contains extension methods to IServiceCollection.

ServiceCollection

Default implementation of IServiceCollection.

ServiceCollectionContainerBuilderExtensions

Extension methods for building a ServiceProvider from an IServiceCollection.

ServiceCollectionHostedServiceExtensions
ServiceCollectionServiceExtensions

Extension methods for adding services to an IServiceCollection.

ServiceDescriptor

Describes a service with its service type, implementation, and lifetime.

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.

SignalRDependencyInjectionExtensions

Extension methods for setting up SignalR services in an IServiceCollection.

SpaStaticFilesExtensions

Extension methods for configuring an application to serve static files for a Single Page Application (SPA).

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
WsFederationExtensions

Extensions for registering the WsFederationHandler.

Interfaces

IHttpClientBuilder

A builder for configuring named HttpClient instances returned by IHttpClientFactory.

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

A factory for creating instances of IServiceScope, which is used to create services within a scope.

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