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
)
Function GetLifetimeScope (
configurationAction As Action(Of ContainerBuilder)
) As ILifetimeScope
Parameters
- configurationAction
- Type: SystemActionContainerBuilder
A configuration action that will execute during lifetime scope creation.
Return Value
Type:
ILifetimeScopeA new or existing nested lifetime scope.
See Also