TMultiTenantConnectionPool Class
IDBConnectionPool facade over TMultiTenantPoolProvider that resolves the current tenant on every connection request.
Remarks
Hand it to code that expects a plain connection pool; each call to GetConnection asks the ITenantResolver for the tenant id and returns a connection from that tenant's pool.
Syntax
Unit: Aurelius.Tenancy.Pool
TMultiTenantConnectionPool = class(TMultiTenantPoolProvider, IDBConnectionPool);
Constructors
| Name | Description |
|---|---|
| Create | Creates a new TMultiTenantConnectionPool instance. |
Methods
| Name | Description |
|---|---|
| GetConnection | Returns a connection from the pool of the current tenant. |