SimpleInjectorWebApiDependencyResolver Constructor (Container)

Simple Injector
Initializes a new instance of the SimpleInjectorWebApiDependencyResolver class with the default scope option (i.e. to use an ambient AsyncScopedLifestyle scope if one already exists).

Namespace:  SimpleInjector.Integration.WebApi
Assembly:  SimpleInjector.Integration.WebApi (in SimpleInjector.Integration.WebApi.dll) Version: 4.0.0
Syntax

public SimpleInjectorWebApiDependencyResolver(
	Container container
)

Parameters

container
Type: SimpleInjectorContainer
The container.
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when the container parameter is a null reference (Nothing in VB).
See Also

Reference