Click or drag to resize

ILifetimeScopeProviderGetLifetimeScope Method

Gets a nested lifetime scope that services can be resolved from.

Namespace:  Autofac.Integration.Mvc
Assembly:  Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax
ILifetimeScope GetLifetimeScope(
	Action<ContainerBuilder> configurationAction
)

Parameters

configurationAction
Type: SystemActionContainerBuilder
A configuration action that will execute during lifetime scope creation.

Return Value

Type: ILifetimeScope
A new or existing nested lifetime scope.
See Also