ThreadScopedLifestyleCreateCurrentScopeProvider 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.Lifestyles
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

protected override 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 never returns null.
See Also

Reference