Extensions for configuring Simple Injector with ASP.NET Core using
SimpleInjectorAddOptions.
Inheritance Hierarchy
SimpleInjectorSimpleInjectorAddOptionsAspNetCoreExtensions
Namespace: SimpleInjector
Assembly: SimpleInjector.Integration.AspNetCore (in SimpleInjector.Integration.AspNetCore.dll) Version: 5.0.0
Syntax
The SimpleInjectorAddOptionsAspNetCoreExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | AddAspNetCore |
Adds basic Simple Injector integration for ASP.NET Core and returns a builder object that allow
additional integration options to be applied. These basic integrations includes wrapping each web
request in an AsyncScopedLifestyle scope and making the nessesary changes that make
it possible for enabling the injection of framework components in Simple Injector-constructed
components when
UseSimpleInjector(IServiceProvider, Container)
is called.
|
See Also