Provides additional options for creating the SimpleInjectorWebApiDependencyResolver.
Namespace: SimpleInjector.Integration.WebApi
Assembly: SimpleInjector.Integration.WebApi (in SimpleInjector.Integration.WebApi.dll) Version: 5.3.0
Syntax
Members
Member name | Value | Description | |
---|---|---|---|
UseAmbientScope | 0 | When BeginScope is called, an ambient AsyncScopedLifestyle scope is used, if one already exists. Otherwise, it creates a new AsyncScopedLifestyle scope before returning. This is the default value. | |
RequiresNew | 1 | A new AsyncScopedLifestyle scope is always created by BeginScope before returning. |
See Also