Click or drag to resize

RootScopeLifetimeFindScope Method

Given the most nested scope visible within the resolve operation, find the scope for the component.

Namespace:  Autofac.Core.Lifetime
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public ISharingLifetimeScope FindScope(
	ISharingLifetimeScope mostNestedVisibleScope
)

Parameters

mostNestedVisibleScope
Type: Autofac.CoreISharingLifetimeScope
The most nested visible scope.

Return Value

Type: ISharingLifetimeScope
The scope for the component.

Implements

IComponentLifetimeFindScope(ISharingLifetimeScope)
See Also