Begin a new nested scope, with additional components available to it.
Component instances created via the new scope
will be disposed along with it.
| C# | Visual Basic | Visual C++ |
ILifetimeScope BeginLifetimeScope( Action<ContainerBuilder> configurationAction )
Function BeginLifetimeScope ( _ configurationAction As Action(Of ContainerBuilder) _ ) As ILifetimeScope
ILifetimeScope^ BeginLifetimeScope( Action<ContainerBuilder^>^ configurationAction )
- configurationAction (Action<(Of <(ContainerBuilder>)>))
- Action on a ContainerBuilder that adds component registations visible only in the new scope.
A new lifetime scope.
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.