WebRequestLifestyleCreateCurrentScopeProvider 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.Integration.Web
Assembly:  SimpleInjector.Integration.Web (in SimpleInjector.Integration.Web.dll) Version: 4.10.2
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