AutofacChildLifetimeScopeServiceProviderFactory Constructor (FuncILifetimeScope, ActionContainerBuilder) |
Namespace:
Autofac.Extensions.DependencyInjection
Assembly:
Autofac.Extensions.DependencyInjection (in Autofac.Extensions.DependencyInjection.dll) Version: 7.1.0+380b08798bf724f36e200e687129b44a0778ab92
Syntax public AutofacChildLifetimeScopeServiceProviderFactory(
Func<ILifetimeScope> rootLifetimeScopeAccessor,
Action<ContainerBuilder> configurationAction = null
)
Public Sub New (
rootLifetimeScopeAccessor As Func(Of ILifetimeScope),
Optional configurationAction As Action(Of ContainerBuilder) = Nothing
)
Parameters
- rootLifetimeScopeAccessor
- Type: SystemFuncILifetimeScope
A function to retrieve the root ILifetimeScope instance. - configurationAction (Optional)
- Type: SystemActionContainerBuilder
Action on a ContainerBuilder that adds component registrations to the container.
See Also