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: 5.0.0
Syntax

public static class SimpleInjectorAspNetCoreIntegrationExtensions

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