SimpleInjectorAspNetCoreIntegrationExtensions Class

Simple Injector
Extension methods for integrating Simple Injector with ASP.NET applications.
Inheritance Hierarchy

SystemObject
  SimpleInjectorSimpleInjectorAspNetCoreIntegrationExtensions

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.AspNetCore (in SimpleInjector.Integration.AspNetCore.dll) Version: 4.1.0-alpha1
Syntax

public static class SimpleInjectorAspNetCoreIntegrationExtensions

The SimpleInjectorAspNetCoreIntegrationExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCrossWire(Container, Type, IApplicationBuilder)
Cross-wires an ASP.NET Core or third party service to the container, to allow the service to be injected into components that are built by the container.
Public methodStatic memberCrossWireTService(Container, IApplicationBuilder)
Cross-wires an ASP.NET Core or third party service to the container, to allow the service to be injected into components that are built by the container.
Public methodStatic memberEnableSimpleInjectorCrossWiring
Enables ASP.NET Core services to be cross-wired in the Container. This method should be called in the ConfigureServices method of the application's Startup class. When cross-wiring is enabled, individual cross-wire registrations can be made by calling CrossWireTService(Container, IApplicationBuilder).
Public methodStatic memberGetRequestServiceT
Get service of type T from the list of request-specific services of the application builder. This preserves the lifestyle of the registered component.
Public methodStatic memberGetRequiredRequestServiceT
Get service of type T from the list of request-specific services of the application builder. This preserves the lifestyle of the registered component.
Public methodStatic memberUseSimpleInjectorAspNetRequestScoping(IApplicationBuilder, Container) Obsolete.
Wraps ASP.NET requests in an AsyncScopedLifestyle.
Public methodStatic memberUseSimpleInjectorAspNetRequestScoping(IServiceCollection, Container)
Wraps ASP.NET requests in an AsyncScopedLifestyle.
Top
See Also

Reference