Constructor
new TenantProvider(tenantIdnullable)
Creates a new `TenantProvider` configured with the passed tenant ID.
The argument may be omitted but until the `_tenantId` is assigned some non-default value, the
application is considered single-tenant.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
tenantId |
TenantId |
<nullable> |
the ID of the currently active tenant |
- Source:
Classes
Methods
tenantId() → {TenantId}
Returns the currently active tenant ID.
- Source:
Returns:
- Type
- TenantId
update(tenantIdnon-null)
Parameters:
Name | Type | Description |
---|---|---|
tenantId |
TenantId | the ID of the currently active tenant |
- Source: