TAureliusTenantCatalog.FindTenantByIdentifier Method
Returns the tenant associated with an external identifier, using the routing cache.
Remarks
Unlike calling FindTenantByIdentifier on the catalog directly, the result is cached according to CacheTTL and NegativeCacheTTL, so the method can be called on every request.
Syntax
Unit: Aurelius.Comp.TenantCatalog
function TAureliusTenantCatalog.FindTenantByIdentifier(const Name: string; const Value: string): TTenantInfo;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Name | string | The identifier name. |
| const | Value | string | The identifier value. |
Returns
The TTenantInfo of the tenant, or an empty record if the identifier is not registered.