ScopedLifestyleCreateCurrentScopeProvider Method

Simple Injector
Creates a delegate that upon invocation return the current Scope for this lifestyle and the given container, or null when the delegate is executed outside the context of such scope.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

protected abstract Func<Scope> CreateCurrentScopeProvider(
	Container container
)

Parameters

container
Type: SimpleInjectorContainer
The container for which the delegate gets created.

Return Value

Type: FuncScope
A FuncTResult delegate. This method should never return null.
See Also

Reference