DependencyResolverScopeOption Enumeration

Simple Injector
Provides additional options for creating the SimpleInjectorWebApiDependencyResolver.

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

public enum DependencyResolverScopeOption

  Member nameValueDescription
UseAmbientScope0 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.
RequiresNew1 A new AsyncScopedLifestyle scope is always created by BeginScope before returning.
See Also