Click or drag to resize

AutofacDependencyResolver Constructor (ILifetimeScope, ILifetimeScopeProvider, ActionContainerBuilder)

Initializes a new instance of the AutofacDependencyResolver class.

Namespace:  Autofac.Integration.Mvc
Assembly:  Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax
public AutofacDependencyResolver(
	ILifetimeScope container,
	ILifetimeScopeProvider lifetimeScopeProvider,
	Action<ContainerBuilder> configurationAction
)

Parameters

container
Type: AutofacILifetimeScope
The container that nested lifetime scopes will be create from.
lifetimeScopeProvider
Type: Autofac.Integration.MvcILifetimeScopeProvider
A ILifetimeScopeProvider implementation for creating new lifetime scopes.
configurationAction
Type: SystemActionContainerBuilder
Action on a ContainerBuilder that adds component registations visible only in nested lifetime scopes.
See Also