TTenantPoolProvider.GetPool Method
Returns the connection pool of the shard that hosts the given tenant.
Remarks
Raises ETenantNotResolved for an empty tenant id, ETenantNotFound for an unknown tenant, ETenantNotActive for a tenant whose status is not Active, EShardUnavailable when the tenant has no shard or its shard is disabled, and ETenantCatalogUnavailable when the catalog cannot be reached.
Syntax
Unit: Aurelius.Tenancy.Provider
function TTenantPoolProvider.GetPool(const TenantId: string): IDBConnectionPool;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | TenantId | string | The id of the tenant. |
Returns
The IDBConnectionPool of the tenant's shard.