Autofac .NET Inversion of Control Container
BeginLifetimeScope Method (tag, configurationAction)
NamespacesAutofacILifetimeScopeBeginLifetimeScope(Object, 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(
	Object tag,
	Action<ContainerBuilder> configurationAction
)
Function BeginLifetimeScope ( _
	tag As Object, _
	configurationAction As Action(Of ContainerBuilder) _
) As ILifetimeScope
ILifetimeScope^ BeginLifetimeScope(
	Object^ tag, 
	Action<ContainerBuilder^>^ configurationAction
)
Parameters
tag (Object)
The tag applied to the ILifetimeScope.
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)