AutofacMultitenantServiceProviderFactory Constructor |
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
)
Public Sub New (
multitenantContainerAccessor As Func(Of IContainer, MultitenantContainer),
Optional configurationAction As Action(Of ContainerBuilder) = Nothing
)
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 See Also