Extension methods for integrating Simple Injector with ASP.NET applications.
Inheritance Hierarchy
SimpleInjectorSimpleInjectorAspNetCoreIntegrationExtensions
Namespace: SimpleInjector
Assembly: SimpleInjector.Integration.AspNetCore (in SimpleInjector.Integration.AspNetCore.dll) Version: 5.0.0
Syntax
The SimpleInjectorAspNetCoreIntegrationExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetRequestServiceT |
Get service of type T from the list of request-specific services of the
application builder. This preserves the lifestyle of the registered component.
| |
GetRequiredRequestServiceT |
Get service of type T from the list of request-specific services of the
application builder. This preserves the lifestyle of the registered component.
| |
UseMiddleware(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.
| |
UseMiddlewareTMiddleware(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.
| |
UseSimpleInjectorAspNetRequestScoping | Wraps ASP.NET requests in an AsyncScopedLifestyle. |
See Also