Click or drag to resize

AutofacMultitenantServiceProviderFactory Constructor

Initializes a new instance of the AutofacMultitenantServiceProviderFactory class.

Namespace:  Microsoft.AspNetCore.Hosting
Assembly:  Autofac.Integration.AspNetCore.Multitenant (in Autofac.Integration.AspNetCore.Multitenant.dll) Version: 4.0.1+b60273783824e015af81d477fca338eb146578d7
Syntax
public AutofacMultitenantServiceProviderFactory(
	Func<IContainer, MultitenantContainer> multitenantContainerAccessor,
	Action<ContainerBuilder> configurationAction = null
)

Parameters

multitenantContainerAccessor
Type: SystemFuncIContainer, MultitenantContainer
A function that will access the multitenant container from which request lifetimes should be generated.
configurationAction (Optional)
Type: SystemActionContainerBuilder
Action on a ContainerBuilder that adds component registrations to the conatiner.
Exceptions
ExceptionCondition
ArgumentNullException
See Also