MultitenantContainerGetTenantScope Method |
Retrieves the lifetime scope for a specific tenant.
Namespace:
Autofac.Multitenant
Assembly:
Autofac.Multitenant (in Autofac.Multitenant.dll) Version: 6.0.0+9a36082eb9b91dac82616d9efefa940b8c375948
Syntax public ILifetimeScope GetTenantScope(
Object tenantId
)
Public Function GetTenantScope (
tenantId As Object
) As ILifetimeScope
Parameters
- tenantId
- Type: SystemObject
The ID of the tenant for which the lifetime scope should be retrieved. If this
value is , the scope is returned for the "default
tenant" - the tenant that is used when no tenant ID can be determined.
Return Value
Type:
ILifetimeScope[Missing <returns> documentation for "M:Autofac.Multitenant.MultitenantContainer.GetTenantScope(System.Object)"]
See Also