Click or drag to resize

RequestLifetimeScopeProviderGetLifetimeScopeCore Method

Gets a lifetime scope for the current HTTP request. This method can be overridden to alter the way that the life time scope is constructed.

Namespace:  Autofac.Integration.Mvc
Assembly:  Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax
protected virtual ILifetimeScope GetLifetimeScopeCore(
	Action<ContainerBuilder> configurationAction
)

Parameters

configurationAction
Type: SystemActionContainerBuilder
A configuration action that will execute during lifetime scope creation.

Return Value

Type: ILifetimeScope
A new lifetime scope for the current HTTP request.
See Also