SimpleInjectorWebApiDependencyResolver Constructor (Container, DependencyResolverScopeOption)

Simple Injector
Initializes a new instance of the SimpleInjectorWebApiDependencyResolver class.

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

public SimpleInjectorWebApiDependencyResolver(
	Container container,
	DependencyResolverScopeOption scopeOption
)

Parameters

container
Type: SimpleInjectorContainer
The container.
scopeOption
Type: SimpleInjector.Integration.WebApiDependencyResolverScopeOption
The scoping option.
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when the container parameter is a null reference.
InvalidEnumArgumentExceptionThrown when the scopeOption contains an invalid value.
See Also

Reference