Microsoft.Extensions.DependencyInjection Microsoft.Extensions.DependencyInjection Namespace

Classes

Helper code for the various activator services.
Extension methods for setting up diagnostic services in an IServiceCollection.
Extension methods for setting up antiforgery services in an IServiceCollection.
Contains the extension methods for Conventions.
Extension methods for setting up authentication services in an IServiceCollection.
Extension methods for setting up authorization services in an IServiceCollection.
Extension methods for setting up cross-origin resource sharing services in an IServiceCollection.
Extension methods for setting up data protection services in an IServiceCollection.
Provides access to default Data Protection ServiceDescriptor instances.
Extension methods for adding directory browser services.
Extension methods for setting up Elm services in an IServiceCollection.
Extension methods for setting up web encoding services in an IServiceCollection.
Contains extension methods to IServiceCollection for configuring identity services.
Extension methods for setting up localization services in an IServiceCollection.
Extension methods for setting up logging services in an IServiceCollection.
Extension methods for setting up memory cache related services in an IServiceCollection.
Extensions for configuring MVC using an IMvcBuilder.
Extension methods for setting up essential MVC services in an IServiceCollection.
Extension methods for configuring MVC data annotations localization.
Extensions for configuring MVC data annotations using an IMvcBuilder.
Extensions methods for configuring MVC via an IMvcBuilder.
Extension methods for configuring MVC view localization.
Extension methods for configuring MVC view localization.
Extensions methods for configuring MVC via an IMvcBuilder.
Extension methods for setting up MVC services in an IServiceCollection.
Extensions methods for configuring MVC via an IMvcBuilder.
Extension methods for adding XML formatters to MVC.
Extension methods for adding XML formatters to MVC.
Extension methods for adding configuration related options services to the DI container.
Extension methods for adding options services to the DI container.
Extension methods for setting up Redis distributed cache related services in an IServiceCollection.
Contains extension methods to IServiceCollection.
Default implementation of IServiceCollection.
Extension methods for adding services to an IServiceCollection.
Extension methods for getting services from an System.IServiceProvider.
Extension methods for adding session services to the DI container.
Extension methods for setting up Microsoft SQL Server distributed cache services in an IServiceCollection.
Extension methods for configuring Razor cache tag helpers.

Interfaces

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

Enums

Specifies the lifetime of a service in an IServiceCollection.

Delegates

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