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: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
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