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: 4.0.0
Syntax

public enum DependencyResolverScopeOption
Members

  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

Reference