SimpleInjectorAspNetCoreIntegrationExtensions Methods

Simple Injector

The SimpleInjectorAspNetCoreIntegrationExtensions type exposes the following members.

Methods

  NameDescription
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 memberUseMiddleware(IApplicationBuilder, Type, Container)
Adds a middleware type to the application's request pipeline. The middleware will be resolved from the supplied the Simple Injector container. The middleware will be added to the container for verification.
Public methodStatic memberUseMiddlewareTMiddleware(IApplicationBuilder, Container)
Adds a middleware type to the application's request pipeline. The middleware will be resolved from the supplied the Simple Injector container. The middleware will be added to the container for verification.
Public methodStatic memberUseSimpleInjectorAspNetRequestScoping
Wraps ASP.NET requests in an AsyncScopedLifestyle.
Top
See Also

Reference