TXDataTenantConnectionPool.SetupModule Method
Subscribes the tenancy behavior to the events of an XData server module.
Remarks
Called automatically by XData.Comp.Server.TXDataServer for each module it creates. It subscribes to OnManagerCreate to enable the multitenant filter (when EnableFilter is True) and to OnModuleException to map the tenancy exceptions to HTTP status codes (when HandleTenantExceptions is True): missing tenant to 400, conflicting tenants to 400, unknown tenant to 404, inactive tenant to 403 (or 404 when AntiEnumeration is True), unavailable shard or catalog to 503.
Syntax
Unit: XData.Comp.TenantConnectionPool
procedure TXDataTenantConnectionPool.SetupModule(AModule: TObject); override;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AModule | TObject | The TXDataServerModule being configured. |