Returns the current Scope for this lifestyle and the given
container, or null when this method is executed outside the context of a scope.
Namespace: SimpleInjector.Integration.Web
Assembly: SimpleInjector.Integration.Web (in SimpleInjector.Integration.Web.dll) Version: 4.10.2
Syntax
Parameters
- container
- Type: SimpleInjectorContainer
The container instance that is related to the scope to return.
Return Value
Type: ScopeA Scope instance or null when there is no scope active in this context.
See Also