MultitenantContainer Constructor |
Namespace:
Autofac.Multitenant
Assembly:
Autofac.Multitenant (in Autofac.Multitenant.dll) Version: 6.0.0+9a36082eb9b91dac82616d9efefa940b8c375948
Syntax public MultitenantContainer(
ITenantIdentificationStrategy tenantIdentificationStrategy,
IContainer applicationContainer
)
Public Sub New (
tenantIdentificationStrategy As ITenantIdentificationStrategy,
applicationContainer As IContainer
)
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 Exception | Condition |
---|
ArgumentNullException |
Thrown if tenantIdentificationStrategy or
applicationContainer is .
|
See Also