Click or drag to resize

MultitenantContainer Constructor

Initializes a new instance of the MultitenantContainer class.

Namespace:  Autofac.Multitenant
Assembly:  Autofac.Multitenant (in Autofac.Multitenant.dll) Version: 6.0.0+9a36082eb9b91dac82616d9efefa940b8c375948
Syntax
public MultitenantContainer(
	ITenantIdentificationStrategy tenantIdentificationStrategy,
	IContainer applicationContainer
)

Parameters

tenantIdentificationStrategy
Type: Autofac.MultitenantITenantIdentificationStrategy
The strategy to use for identifying the current tenant.
applicationContainer
Type: AutofacIContainer
The application container from which tenant-specific lifetimes will be created.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if tenantIdentificationStrategy or applicationContainer is .
See Also