Represents the tenant context for a given request in a multi-tenant deployment.
Attached to UserInfo.TenantContext by server middleware when multi-tenancy is enabled.
Extensibility: This interface is intentionally minimal. Middle-layer packages
(e.g., a SaaS layer) should extend it with richer properties rather than
widening this base:
Represents the tenant context for a given request in a multi-tenant deployment. Attached to
UserInfo.TenantContextby server middleware when multi-tenancy is enabled.Extensibility: This interface is intentionally minimal. Middle-layer packages (e.g., a SaaS layer) should extend it with richer properties rather than widening this base:
Because
UserInfo.TenantContextis typed asTenantContext, any subtype satisfies it via structural typing. Hooks in the extending layer can downcast: