Click or drag to resize

MultitenantContainerGetCurrentTenantScope Method

Retrieves the lifetime scope for the current tenant based on execution context.

Namespace:  Autofac.Multitenant
Assembly:  Autofac.Multitenant (in Autofac.Multitenant.dll) Version: 6.0.0+9a36082eb9b91dac82616d9efefa940b8c375948
Syntax
public ILifetimeScope GetCurrentTenantScope()

Return Value

Type: ILifetimeScope

[Missing <returns> documentation for "M:Autofac.Multitenant.MultitenantContainer.GetCurrentTenantScope"]

Remarks

This method uses the TenantIdentificationStrategy to retrieve the current tenant ID and then retrieves the scope using GetTenantScope(Object).

See Also