Autofac .NET Inversion of Control Container
BeginLifetimeScope Method (configurationAction)
NamespacesAutofacILifetimeScopeBeginLifetimeScope(Action<(Of <(ContainerBuilder>)>))
Begin a new nested scope, with additional components available to it. Component instances created via the new scope will be disposed along with it.
Declaration Syntax
C#Visual BasicVisual C++
ILifetimeScope BeginLifetimeScope(
	Action<ContainerBuilder> configurationAction
)
Function BeginLifetimeScope ( _
	configurationAction As Action(Of ContainerBuilder) _
) As ILifetimeScope
ILifetimeScope^ BeginLifetimeScope(
	Action<ContainerBuilder^>^ configurationAction
)
Parameters
configurationAction (Action<(Of <(ContainerBuilder>)>))
Action on a ContainerBuilder that adds component registations visible only in the new scope.
Return Value
A new lifetime scope.
Remarks
The components registered in the sub-scope will be treated as though they were registered in the root scope, i.e., SingleInstance() components will live as long as the root scope.

Assembly: Autofac (Module: Autofac) Version: 2.1.13.813 (2.1.13.813)