SimpleInjectorUseOptionsAspNetCoreExtensions Class

Simple Injector
Extension methods to finalize Simple Injector integration on top of ASP.NET Core.
Inheritance Hierarchy

SystemObject
  SimpleInjectorSimpleInjectorUseOptionsAspNetCoreExtensions

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.AspNetCore (in SimpleInjector.Integration.AspNetCore.dll) Version: 4.6.0
Syntax

public static class SimpleInjectorUseOptionsAspNetCoreExtensions

The SimpleInjectorUseOptionsAspNetCoreExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberUseMiddlewareTMiddleware
Adds a middleware type to the application's request pipeline. The middleware will be resolved from Simple Injector. The middleware will be added to the container for verification.
Public methodStatic memberUseSimpleInjector
Finalizes the configuration of Simple Injector on top of IServiceCollection. Will ensure framework components can be injected into Simple Injector-resolved components, unless AutoCrossWireFrameworkComponents is set to false using the setupAction.
Top
See Also

Reference