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
Exception | Condition |
---|---|
ArgumentNullException | Thrown when the container parameter is a null reference. |
InvalidEnumArgumentException | Thrown when the scopeOption contains an invalid value. |
See Also